View Single Post
Old 12-02-2003   #2 (permalink)
Order
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
to use includes and requires you need to do it like this:

PHP Code:
<?
    
require("/path/to/file.ext");
?>
but you will find that including a file is much better the requiring it:

PHP Code:
<?
    
include("/path/to/file.ext");
?>
And yes, there is a difference in requiring or including a file, requiring will check to see if the file exists before including it, while include will attempt to include the file whether or not it exists... you may want to look into include_once() and require_once() if you only need to include the file once...
__________________
Order is offline