Difference between revisions of "PHP105 and a half"

From mi-linux
Jump to navigationJump to search
 
(No difference)

Revision as of 17:16, 12 February 2007

A word about include statements

A useful function in PHP is to include the contents of fileX in fileY at a given point.

For example:

  • You could
    • include a menu file in each page
    • or a CSS file dynamically created from a database
    • or any number of other ideas

to include fileY in fileX

include ("myfile.html");