Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-13-2012, 12:17 PM   PM User | #1
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,493
Thanks: 44
Thanked 438 Times in 427 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Echo 'Merry Christmas';

PHP Code:
print <<<STOP

To all CodingForums Members:

Merry Christmas and a Happy New Year!

Best Wishes,

TangoForce

STOP; 
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Users who have thanked tangoforce for this post:
sunfighter (12-13-2012)
Old 12-13-2012, 10:04 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,042
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
416e642061204861707079204e6577205965617221


-mlseim
mlseim is offline   Reply With Quote
Users who have thanked mlseim for this post:
tangoforce (12-14-2012)
Old 12-14-2012, 12:46 AM   PM User | #3
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
PHP Code:
try
{
    print 
$christmas->isMerry();
}
catch (
BahHumbugException $ex)
{
    throw new 
ScroogeException($ex);

rofl.
Fou-Lu is offline   Reply With Quote
Users who have thanked Fou-Lu for this post:
tangoforce (12-14-2012)
Old 12-14-2012, 02:09 AM   PM User | #4
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
PHP Code:

function many_happy() { return; }

many_happy(); // Returns. 
Custard7A is offline   Reply With Quote
Users who have thanked Custard7A for this post:
tangoforce (12-14-2012)
Old 12-14-2012, 04:01 AM   PM User | #5
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 891
Thanks: 4
Thanked 205 Times in 204 Posts
tracknut is an unknown quantity at this point
PHP Code:
$all $_SESSION['greetings']; 
tracknut is offline   Reply With Quote
Users who have thanked tracknut for this post:
tangoforce (12-14-2012)
Old 12-14-2012, 10:18 AM   PM User | #6
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
Merry Christmas amigos. .

- Bill W
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk
Redcoder is offline   Reply With Quote
Users who have thanked Redcoder for this post:
tangoforce (12-14-2012)
Old 12-14-2012, 08:22 PM   PM User | #7
Mayhem30
New Coder

 
Join Date: Jan 2010
Posts: 63
Thanks: 2
Thanked 5 Times in 4 Posts
Mayhem30 is an unknown quantity at this point
TWVycnkgQ2hyaXN0bWFzIQ==
Mayhem30 is offline   Reply With Quote
Users who have thanked Mayhem30 for this post:
tangoforce (12-14-2012)
Old 12-14-2012, 08:48 PM   PM User | #8
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Code:
10 LET A$ = "Ho!"
20 FOR I = 1 TO 10
30 PRINT A$;" ";
40 NEXT I
UNTESTED
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Users who have thanked AndrewGSW for this post:
tangoforce (12-14-2012)
Old 12-15-2012, 02:48 AM   PM User | #9
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
PHP Code:
try
{
    print 
$christmas->isMerry();
}
catch (
BahHumbugException $ex)
{
    throw new 
ScroogeException($ex);

rofl.

Code:

> SELECT * FROM users WHERE username = 'Fou-Lu' AND christmas_cheer > 0;
0 rows returned
Custard7A is offline   Reply With Quote
Old 12-15-2012, 12:50 PM   PM User | #10
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,493
Thanks: 44
Thanked 438 Times in 427 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Quote:
Originally Posted by Custard7A View Post
Code:

> SELECT * FROM users WHERE username = 'Fou-Lu' AND christmas_cheer > 0;
0 rows returned
You seem to be suggesting Fou has no Christmas Cheer yet you're the one wishing many happy returns (something you do for birthdays not christmas!)
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 12-15-2012, 03:07 PM   PM User | #11
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
Fou-Lu seemed to be suggesting Fou-Lu has no christmas cheer, and I'm sorry! I don't know best English, I thought this was a proper statement..

Happy Christmas-time to you all helpful people. Even if you find many parts silly, I hope you can enjoy some nice things of the festive season.
Custard7A is offline   Reply With Quote
Old 12-15-2012, 03:14 PM   PM User | #12
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,493
Thanks: 44
Thanked 438 Times in 427 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Quote:
Originally Posted by Custard7A View Post
I don't know best English, I thought this was a proper statement..
You're not seriously going to try and make that stick are you? You're in Australia and none of your other posts have ever indicated you have any problems with the english language. A simple apology would have been better and gained you more respect than a feeble excuse.

As for Fous post, I liked it. It's traditional to mention the bah humbug thing at christmas and I thought Fous post was well made.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 12-16-2012, 03:06 AM   PM User | #13
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
I didn't say my English was bad, but I didn't understand that expression so much (Until you link to Wikipedia). My first langauge is German, I just wanted Fou-Lu to have a nice Christmas because he always helps me I give up!
Custard7A is offline   Reply With Quote
Old 12-16-2012, 12:22 PM   PM User | #14
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,493
Thanks: 44
Thanked 438 Times in 427 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Ah ok!
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 12-16-2012, 03:46 PM   PM User | #15
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
PHP Code:

$santa_snacks 
clean_up($_POST['santa_snacks']);

switch 
$santa_snacks
{

  case 
"cookies":
         echo 
"I like cookies, thank you! HO HO HO ";
         break;

  case 
"candy":
         echo 
"The more candy the better, thank you! HO HO HO";
         break;

  case 
"pie":
         echo 
"I can never get enough pie, thank you! HO HO HO";
         break;

  case 
"cake":
         echo 
"You must have been good for goodness sake, thanks for the cake! HO HO HO";
         break;

  case 
"milk":
         echo 
"I needed that to wash down my cake, pie, cookies and candy. Thank you! HO HO HO";
         break;

  case 
"everyone":
         echo 
"However you celebrate this holiday season, may you have a good one and wishing you all the very best";
         break;

  default:
          echo 
"Happy New Years as well, be safe all";
          break;

}
//end switch 
durangod is offline   Reply With Quote
Users who have thanked durangod for this post:
tangoforce (12-16-2012)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:33 AM.


Advertisement
Log in to turn off these ads.