Web Hosting Talk







View Full Version : PHP question


8inet-Johnathan
06-12-2005, 11:33 PM
i'm a noob when it comes to php :(


i have a vb forum and a php page that displays an ad, whats the php code to include the page??



any help is greatly welcomed!

mwrave
06-12-2005, 11:42 PM
<?PHP require "/path/to/file/file.inc" ?>
or
<?PHP include "/path/to/file/file.inc" ?>

rackgeek
06-13-2005, 01:00 AM
Please! also note. The Include function will still the run main script file (I.E. index.php) regardless if by some chance the file your including in your script is missing (I.E. myadinclude.inc.php). Where as, the PHP Required function will halt all operations if your required file is missing on the server.

I would recommend using (Include) for your type of project.

Most certainly wanted to point that out for you.

Thanks!