12/11/2008
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 solution. Just use this codes <?php echo date(“m-d-Y”, time()); ?>. Both are showing same results. Enjoy
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: 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.