Monday, 24 August 2009

PHP Practice (Wk4)

During the lecture of DMT in week 4 we did a little server-side practice. When we opened the local .php file directly from our browser, notting happend. But after uploading the file to the server, you see the date. When you want to change the date to the following format: "Tuesday 18th of August 2009 05:28:29 PM" you have to modify the php script.

I found on the php website some helpfull information and ended up with the following code: date("l dS \of F Y h:i:s A"). Mention the \ character to display "of" instead of "2009"

resources:
http://php.net/date

No comments:

Post a Comment