Hi Nick, > masterfile.inc lives in /var/www/includes/ and contains this line: > include("/var/www/includes/anotherfile.inc"); > > in index.php I include masterfile.inc and thus get anotherfile.inc. > > What I'd like to know though is, is it possible to have the include line > in masterfile.inc specify a url *relative* to itself? > like: > // masterfile.inc > include("anotherfile.inc"); // now the path is relative.
AFAIK the options are absolute addressing, relative addressing (to the php.ini), and http access. RTFM the four pages from http://www.php.net/manual/en/function.require.php. There's quite a bit of advice/experience in the user annotations! Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php