Results 1 to 3 of 3

Thread: PHP question

  1. #1
    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.

  2. #2
    Join Date
    Mar 2004
    Location
    Greater Chicagoland
    Posts
    181
    <?PHP require "/path/to/file/file.inc" ?>
    or
    <?PHP include "/path/to/file/file.inc" ?>

  3. #3
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •