Error In First PHP Code Execution
by Sakib on 5/11/2008In 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: 2 “Create 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: