Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Torsten Roehr
"Tyler Replogle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hey, > i didn't quite get when you ment by that but have you tried using > $DOCUMENT_ROOT before your path, that might help it will be something like > this > require_once('$DOCUMENT_ROOT/test/db.php'); > $DOCUMENT_ROOT

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Nikolay Bachiyski
Hello, Just imagine you had just copied the file you want to include and then pasted it into the master file. PHP does not any path translation. For example if you have the following structure: - / -- a.php -- b.php -- /utils c.php d.php Let c.php is included in a.php. Then if you want

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Jordi Canals
Curt Zirzow wrote: * Thus wrote Sheeraz fazal ([EMAIL PROTECTED]): Hi, I have problem in undertanding the require_once/require/include/include_once functionality. Php files in my project are located in different folders. Some folders have common files for other files. And file layout is like this

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Richard Harb
did you check the online manual for those funcitons yet? I have found the user notes to be a wealthy ressource on that matter. This topic also came up very recently on this list so checking the archives might solve it. Richard Thursday, April 22, 2004, 10:34:23 PM, thus was written: > Hi, > I

Re: [PHP] require_once('') relative path problem

2004-04-22 Thread Curt Zirzow
* Thus wrote Sheeraz fazal ([EMAIL PROTECTED]): > Hi, > I have problem in undertanding the require_once/require/include/include_once > functionality. Php files in my project are located in different folders. > Some folders have common files for other files. And file layout is like this Include fil

RE: [PHP] require_once('') relative path problem

2004-04-22 Thread Tyler Replogle
hey, i didn't quite get when you ment by that but have you tried using $DOCUMENT_ROOT before your path, that might help it will be something like this require_once('$DOCUMENT_ROOT/test/db.php'); $DOCUMENT_ROOT goes to your first folder that shows up online (where your index page is) From: "Sh