PHP: Hypertext Preprocessor
Posted by Pavan Chander | Filed under Web
Man, I have totally re ‘thunk’ my view on PHP.
In the past the only times I have come into contact with PHP is when I was editing a blog and delving into the code, and let me tell you from looking at the ugly mess of braces and semi-colons - I was happy I didn’t know what I was doing!
But then Ian recently helped me convert the 540 website into a PHP version. As we were on Vent at the time, I got to listen in on his thought process…and it seemed easy. And sure enough, when I looked at the code and saw all the includes it really did make a lot of sense.
And now after having worked with the files myself and done a lot of redesigning the website, I can definitely say that PHP is a must for any web developer. The main reason I am liking the PHP integration is because I can now keep one header/footer file and just have PHP call it and include it in each page, thereby making my life a lot easier when it comes time for site wide changes. The same principle can be applies to navigational aides, sidebars, basically anything that is used repetitively on the site.
In order to further my knowledge I’ve been working on a script that will recursively browse a directory and display its contents. This script will be the foundation for my picture gallery.
Tags: CSS, HTML, PHP, Site News