Thread: Help Please

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    2
    Rep Power
    0
    I just switched from ASP3 to PHP3 and i just need some help. I am trying to include a file that is in the folder includes and is a .htm file
    include "/includes/page1.htm"
    and i get some wierd parse error. I viewed the source on this page and found that they are includeing a file from 6 folders and it works...what is wrong with mine?? Im running php4.0.3pl1 on pws
    Thanks for your help
    php403pl1

    [This message has been edited by php403pl1 (edited November 01, 2000).]
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    <? include("includes/page1.htm");?>

    is correct syntax assuming 'includes' is a dir in the same dir as the script.

    If this does not work then your path is wrong or the included files do not exist.

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

IMN logo majestic logo threadwatch logo seochat tools logo