BLOG

Aug
20

My first PHP site is completed

August 20, 2007 at 10:41 pm

Yay, my first php built site completed yesterday night. I’m quite satisfied with the results of my first site built fully in php. I must say MAMP is definitely an essential developer application when working with php. I highly recommend it.

Building the site must have took twice as long compared to have building the site in HTML, but it’s such a time saver when it comes to updating or fixing specific areas of the site. So it pays off in the long run.

Something I must note is that PHP4 does not let us use ‘public’, ‘protected’ or ‘private’ variable declarations, we must just use ‘var’. That was a mistake I made when I uploaded it onto my test server, I keep getting this error: “PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in line [...]” that I didn’t get with MAMP, which I had set to PHP5.

A little bit about the site, it was a re-design of an older html based website. The new site isn’t up yet, but it should be up in no time. I’ll keep you all updated. For now a very tiny teaser:

teaser.jpg

So the re-design focussed alot on increasing the usability. I’ve add a side navigation bar as well as a drop down navigation at the top. I’ve included alot of whitespace, and basically cleaned up the site a bit. The biggest challenge was cleaning up the original markup, which had tables…*gasp! and some other deprecated tags. Other than that it was a very fun project I must say.

My next project: turn my website into all php!