Re: [PHP-DEV] Preliminary patch for allowing relative includes

2001-07-11 Thread Jeroen van Wolffelaar
> I don't have access to the PHP CVS at the moment (note to self: get a C > compiler)... but I wanted to ask how this will affect (or will it?) HTML > generated from within included PHP files. Eg. A is at web root and includes > B in a subdirectory X. B generates HTML that calls for image C.gif in

Re: [PHP-DEV] Preliminary patch for allowing relative includes

2001-07-11 Thread Aral Balkan
I don't have access to the PHP CVS at the moment (note to self: get a C compiler)... but I wanted to ask how this will affect (or will it?) HTML generated from within included PHP files. Eg. A is at web root and includes B in a subdirectory X. B generates HTML that calls for image C.gif in subdire

Re: [PHP-DEV] Preliminary patch for allowing relative includes

2001-07-10 Thread Andi Gutmans
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...

Re: [PHP-DEV] Preliminary patch for allowing relative includes

2001-07-10 Thread Vlad Krupin
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... thanks, Vlad Andi Gutmans wrote: >Hi guys, > >Att

Re: [PHP-DEV] Preliminary patch for allowing relative includes

2001-07-10 Thread Andi Gutmans
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-DEV] Preliminary patch for allowing relative includes

2001-07-10 Thread Andi Gutmans
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 - b.php - c.php - This example should work when c.php is in the same directory as b.php and PHP is