Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,281
    Thanks
    57
    Thanked 523 Times in 510 Posts
    Blog Entries
    5

    Echo 'Merry Christmas';

    PHP Code:
    print <<<STOP

    To all CodingForums Members:

    Merry Christmas and a Happy New Year!

    Best Wishes,

    TangoForce

    STOP; 
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  2. Users who have thanked tangoforce for this post:

    sunfighter (12-13-2012)

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,455
    Thanks
    8
    Thanked 1,084 Times in 1,075 Posts
    416e642061204861707079204e6577205965617221


    -mlseim

  • Users who have thanked mlseim for this post:

    tangoforce (12-14-2012)

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    PHP Code:
    try
    {
        print 
    $christmas->isMerry();
    }
    catch (
    BahHumbugException $ex)
    {
        throw new 
    ScroogeException($ex);

    rofl.

  • Users who have thanked Fou-Lu for this post:

    tangoforce (12-14-2012)

  • #4
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    PHP Code:

    function many_happy() { return; }

    many_happy(); // Returns. 

  • Users who have thanked Custard7A for this post:

    tangoforce (12-14-2012)

  • #5
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,208
    Thanks
    7
    Thanked 268 Times in 267 Posts
    PHP Code:
    $all $_SESSION['greetings']; 

  • Users who have thanked tracknut for this post:

    tangoforce (12-14-2012)

  • #6
    Regular Coder Redcoder's Avatar
    Join Date
    May 2012
    Location
    /dev/null
    Posts
    333
    Thanks
    2
    Thanked 47 Times in 46 Posts
    Merry Christmas amigos. .

    - Bill W

  • Users who have thanked Redcoder for this post:

    tangoforce (12-14-2012)

  • #7
    New Coder
    Join Date
    Jan 2010
    Posts
    68
    Thanks
    3
    Thanked 5 Times in 4 Posts
    TWVycnkgQ2hyaXN0bWFzIQ==

  • Users who have thanked Mayhem30 for this post:

    tangoforce (12-14-2012)

  • #8
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    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

  • Users who have thanked AndrewGSW for this post:

    tangoforce (12-14-2012)

  • #9
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    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

  • #10
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,281
    Thanks
    57
    Thanked 523 Times in 510 Posts
    Blog Entries
    5
    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!)
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #11
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    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.

  • #12
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,281
    Thanks
    57
    Thanked 523 Times in 510 Posts
    Blog Entries
    5
    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.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #13
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    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!

  • #14
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,281
    Thanks
    57
    Thanked 523 Times in 510 Posts
    Blog Entries
    5
    Ah ok!
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #15
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,368
    Thanks
    262
    Thanked 32 Times in 31 Posts
    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 

  • Users who have thanked durangod for this post:

    tangoforce (12-16-2012)


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •