"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
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
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
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
* 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
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
6 matches
Mail list logo