Re: Absolute and relative paths ..... a quick explanation required

From: Date: Mon, 28 Jul 2003 17:24:35 +0000
Subject: Re: Absolute and relative paths ..... a quick explanation required
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157211@lists.php.net to get a copy of this message
use require_once() or include_once() - these remember what has been included and do not include files that has been already. Kevin McGinley wrote:
Can u tell me then how its posssible to include a file that inculdes another file if it is itself included in two other files that are in difeerent direcrories i.e. |\(root)a.php
       |
       |__ (dir b)\b.php          |
|__ (dir c)\ c.php | |__ (dir d) \ d.php if c.php includes d.php and both a.php and b.php iclude c.php how do u ensure that includes work. I know this can be done by designing everything from the top down and ensuring the system is correct but at the mo Im working on an existing system ?? B.T.W Thanks for your previous answer "Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message news:<3F252D90.2080505@webglobe.sk>...
relative to a.php Kevin McGinley wrote:
Hi all, can anyone tell me how php paths are worked out Im just starting
to use php over asp so would appreciate the answer to the following If a file a.php includes a file b.php which includes a file c.php is the include in file b.php relative to itself or the file that included it i.e. a.php. Any help appreciated


« previous php.general (#157211) next »