View Single Post
  #4 (permalink)  
Old 07-28-2007, 03:10 PM
webmasterneo's Avatar
webmasterneo webmasterneo is offline
Member
 
Join Date: Jul 2007
Posts: 93
webmasterneo is on a distinguished road
Big Vern and Smaaz both said it. If you want to insert the contents of another file into the PHP file you're editing, use either
Code:
include("path/to/file");
or
Code:
require("path/to/file");
The only difference is that when you use "require" and the file being called isn't there or cannot be loaded, the whole page will not render. Whereas in include, there'll just be nothing where that inserted file should be.

__________________
I'd explain it to you; but your head will explode.

Reply With Quote