Error In First PHP Code Execution

    By admin / November 5th, 2008
    0

    In before I said you, I lost my passions about PHP but now I’m over excited about PHP and I published about it in last night. You can read more about random things about PHP.

    I am on Chapter: 2Create a simple PHP Program“. Their I got a full instructions and if you write any php codes and save the file as .html – this will execute but you won’t get the expected results. I also read that, “a very common error you’ll find in your PHP code is the parse error“. Might be I did the same things.

    However, I don’t know – what’s going on that codes (given below). It’s not executing properly. I saved in local server and closed all things properly and the file extension is .php ( I double checked).

    The text here displays the date as a result of PHP5 processing: Today is
    
    < ?php
    $todaysdate = date("m",time()) . "-" . date("d",time()) . "-"
    date("Y", time());
    echo $todaysdate;
    ?>
    

    Hopefully, tomorrow I’ll digg more on this codes. Until then if possible leave your comments and resolve this problem.

    categories →PHP Inspiration
    tags: , ,



    1. Simple Date PHP Code Explanation « the php inspiration
    2. Date & Browser Version Execution In PHP « the php inspiration

    Yours Comments

    Leave a Comment


    Instructions:
    Allowed only basic HTML tags. Please no link dropping, no keywords or domains as names; do not spam, and do not advertise.

    Additional comments powered by BackType

    Get Adobe Flash playerPlugin by wpburn.com wordpress themes