Invision Blue

How to Use Include Files in PHP:

 
By: Scott Botkins
Level: Beginner


Including files in PHP makes things easier on updating especially when it comes to headers and footers.


In order for this php include to work properly you must have your static web page set to .php. Then using the following code below you may add it to your PHP file.


<? include("filename.html") ?>



Make sure "filename.html" is in the same directory as your php web page file or it may not function correctly. If you would like to have all of your includes in one folder then be sure to include the exact file path on your include.

 

Weekly Newsletter:

Subscribe to our newsletter for updates and tips.


Featured Downloads:


Featured Tutorials:


Domain Registration:

Register a domain name powered by GoDaddy.



Copyright © 2005-2008 Invision Blue

Home | Downloads | Shop | About Us | Support