Date: 07/10/01
- Next message: jeroen <email protected>: "[PHP-DEV] Bug #10639 Updated: include() & require()"
- Previous message: Andi Gutmans: "[PHP-DEV] Preliminary patch for allowing relative includes"
- In reply to: Andi Gutmans: "[PHP-DEV] Preliminary patch for allowing relative includes"
- Next in thread: Vlad Krupin: "Re: [PHP-DEV] Preliminary patch for allowing relative includes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You can nuke the fprintf() in the patch :)
Andi
At 08:24 PM 7/10/2001 +0300, 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: jeroen <email protected>: "[PHP-DEV] Bug #10639 Updated: include() & require()"
- Previous message: Andi Gutmans: "[PHP-DEV] Preliminary patch for allowing relative includes"
- In reply to: Andi Gutmans: "[PHP-DEV] Preliminary patch for allowing relative includes"
- Next in thread: Vlad Krupin: "Re: [PHP-DEV] Preliminary patch for allowing relative includes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

