Tuesday, 18 August 2009

Week 4 Prac

I have created a couple of PHP files. It seems fairly logical, but I expect it will be hard to learn all the syntax.

Just to summarise the practical exercise:

Step 1 - Open the file in Firefox
When I opened the date.php file in Firefox, I was presented with a blank screen. Figured this was because I was viewing the file on my PC, which doesn't have a web server.


Step 2 - View the file on my web server
I copied date.php onto my web server (using FileZilla), and I could then view the page in Firefox. I presume this is because I was using the web server (Apache) to view the file and process the PHP request.

Step 3 - Amend the date format
I had a quick look at the date syntax on the PHP Manual, and came across the different date format syntax that is available; and was able to change the syntax in the file to change the way the date was displayed on the screen.

Tonight I was using my UTS web server, which supports PHP. I am also using 000webhost.com to host my personal site, and read that they support PHP and MySQL.


References:
http://www.php.net/manual/en/index.php
http://www.000webhost.com

No comments:

Post a Comment