Error In First PHP Code Execution

by Sakib on 5/11/2008

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.

isakib+admin@gmail.com

There are 2 comments in this article:

  1. 8/11/2008Simple Date PHP Code Explanation « the php inspiration says:

    [...] Filed under PHP, programming and tagged: Date, echo, PHP I have been trying to find out this error In my first PHP code execution. Don’t get any solutions but got some theoretical idea how actually everything working to [...]

  2. 12/11/2008Date & Browser Version Execution In PHP « the php inspiration says:

    [...] 7:57 pm · Filed under PHP and tagged: Date, echo, execution, PHP In before I wrote about the php date execution errors at the first test. Now, what to do? I asked about this matter to Emran bhai and got a simple [...]

Write a comment:

 
More in Programming (7 of 8 articles)