FFD - Visit the site
ICMS

28 January 06

Tip No 1

Every so often I will be posting tips/tricks that can be helpful when writing php code or designing php applications. This will be the first of the “series”:

Try to include files, rather than creating a single of file containing all the code. While the single file may sound “cool” it will give you a headache, especially when you decide to expand the script, or to build a large application. The scripts that you include should be in a folder “includes”, or located within a folder which identifies their “correct category”. In other words, header/footer includes could be placed into a /templates/ folder, while functions/classes could be placed into a /libraries/ folder.

Comment

Next up: Tip No 2