Results 1 to 3 of 3
Thread: PHP question
-
06-12-2005, 11:33 PM #1Web Hosting Master
- Join Date
- Jul 2004
- Location
- Vancouver, Canada
- Posts
- 555
PHP question
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!8i Networks - Advanced Web Solutions
Web Hosting, Web Design, Domain Names and E-Commerce
Providing Affordable, Reliable and Scalable Web Solutions Since 2000.
-
06-12-2005, 11:42 PM #2Junior Guru
- Join Date
- Mar 2004
- Location
- Greater Chicagoland
- Posts
- 181
<?PHP require "/path/to/file/file.inc" ?>
or
<?PHP include "/path/to/file/file.inc" ?>
-
06-13-2005, 01:00 AM #3WHT Addict
- Join Date
- Jan 2004
- Location
- Texas, United States
- Posts
- 131
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!Last edited by rackgeek; 06-13-2005 at 01:07 AM.