LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] Learning PHP

[Webdev] Learning PHP

Kae Verens kverens at contactjuggling.org
Wed Dec 18 10:25:53 GMT 2002


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:

<?php include("header.php");?>
  <h1>Hello World</h1>
<?php include("footer.php");?>

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




More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell