Date: 07/11/01
- Next message: jan.suchanek <email protected>: "[PHP-DEV] Bug #12003 Updated: failed to locate host machine"
- Previous message: patrick <email protected>: "[PHP-DEV] Bug #12032: PHP dumps core when using a 3x derived class from a series of included files"
- In reply to: Vlad Krupin: "Re: [PHP-DEV] Preliminary patch for allowing relative includes"
- Next in thread: Aral Balkan: "Re: [PHP-DEV] Preliminary patch for allowing relative includes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 04:11 PM 7/10/2001 -0700, Vlad Krupin wrote:
>Andi, can you tell me what would happen if I also have another c.php in
>the same directory as a.php? which one of the two c.php's will get included?
>
>I am not complaining about the solution, I am just rying to see if it will
>break my code...
The last resort will be the c.php in b.php's directory. So it will include
the one in the a.php directory.
Andi
>thanks,
>
>Vlad
>
>
>Andi Gutmans wrote:
>
>>Hi guys,
>>
>>Attached is a patch which I worked up quickly (could probably use some
>>improving) which should solve the problem with includes of relative
>>includes :)
>>Simpler said:
>>
>>a.php
>>-----
>><?php include "../b.php"; ?>
>>
>>b.php
>>-----
>><?php include "c.php"; ?>
>>
>>c.php
>>-----
>><?php print "Yay!" ?>
>>
>>This example should work when c.php is in the same directory as b.php and
>>PHP is ran on a.php.
>>
>>Please check this patch. It might crash in certain cases, I barely tested
>>it.
>>Let me know...
>>
>>Andi
>
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: jan.suchanek <email protected>: "[PHP-DEV] Bug #12003 Updated: failed to locate host machine"
- Previous message: patrick <email protected>: "[PHP-DEV] Bug #12032: PHP dumps core when using a 3x derived class from a series of included files"
- In reply to: Vlad Krupin: "Re: [PHP-DEV] Preliminary patch for allowing relative includes"
- Next in thread: Aral Balkan: "Re: [PHP-DEV] Preliminary patch for allowing relative includes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

