#1
  1. No Profile Picture
    PHP Programmer
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    31
    Rep Power
    15
    i try to
    require("includes/connect.php3");
    but it doesn't work. it seems that you can't use subdirectories with require(). Is there a way to do this without SSI?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    60
    Rep Power
    15
    if the calling file is in a separate directory under your webroot, use

    <? include ("../includes/connect.php3")
    ?>

    (no semicolon)

    require uses the same syntax, but this should get what you need
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    43
    Rep Power
    15
    (this is probably for my own reference, but)

    why don't you just give an absolute file path?

    Mike

Similar Threads

  1. Problems with require keyword
    By halfhp in forum Perl Programming
    Replies: 8
    Last Post: January 5th, 2004, 03:16 AM
  2. require
    By Benahimvp in forum Perl Programming
    Replies: 19
    Last Post: July 22nd, 2002, 02:58 PM
  3. Replies: 2
    Last Post: July 31st, 2001, 12:09 PM
  4. too many require
    By Borgeat in forum PHP Development
    Replies: 0
    Last Post: September 18th, 2000, 11:11 AM
  5. Data not found could you try later...
    By Borgeat in forum PHP Development
    Replies: 0
    Last Post: September 18th, 2000, 05:23 AM

IMN logo majestic logo threadwatch logo seochat tools logo