include() and paths

From: Date: Fri, 01 Mar 2002 10:17:48 +0000
Subject: include() and paths
Groups: php.general 
Request: Send a blank email to php-general+get-86739@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, Here's the scenario. 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. Simple (I hope) 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. Many thanks.... - -- - ----------------------------------------------------------- www.explodingnet.com | Projects, Forums and + Articles for website owners - -- Nick Wilson -- | and designers. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8f1VMHpvrrTa6L5oRAogTAJ46IwBbwFVLnVhNEG2qIj9ZqzXX1QCeMinj 6Y7FWqh5wFGqVEYe58LkZTM= =YtcD -----END PGP SIGNATURE-----

« previous php.general (#86739) next »