AJ McKee wrote:
> Hi all,
> Well after a few years of doing stuff in PHP I think its about time I
> learned to code properly and in a manner that will allow what I write to
> be more scabale. Has anyone (adam :-) got any tips. Of course I am doing
> Google, but just wanted to bounce it off you guys.
For starters, I'd suggest getting to know the include() function - it's
a _huge_ step towards scalability.
The minimum source for some of my sites, for example, would consist of:
In the above, header.php would include all code up until the start of
the main content area, and footer.php would continue from the end of the
content area until the closing </html>.
Kae Verens _______\_ webworks.ie
work: www.webworks.ie _____\\__ webhosts
play: www.contactjuggling.org ___\\\___ design
kae: kverens.contactjuggling.org _\\\\____ code
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!