Methods and their descriptions
PHP Code:
include('file.php');
Includes the file. Does not give a fatal error if include fails but may give a warning.
PHP Code:
require('file.php');
Requires that the file is used otherwise it will throw a fatal error.
PHP Code:
require_once('file.php');
Doesn't require the same file twice in the same script. This is useful if you want to include config files, etc. that have no need to be required again. I use this more than anything personally.
__________________
PHP Code:
$talkupation++;
Please login or register to view this content. Registration is FREE - Free IPB forum hosting (releasing today!!!), no ads, free modifications
|