Re: Detected a pattern that malfunctions includes
| From: | Deckard | Date: | Fri, 06 Oct 2006 16:27:51 +0000 |
| Subject: | Re: Detected a pattern that malfunctions includes | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242761@lists.php.net to get a copy of this message | ||
Hi,
I've already set my include_path to /var/www/html and good :(
Best Regards,
Deckard
Richard Lynch wrote:
> On Fri, October 6, 2006 11:17 am, Deckard wrote:
>> I see now that only when the inclu function "has to scale up in the we
>> tree", it fails.
>>
>> For example:
>>
>> This works:
>> include_once("classes/database/dBInsert.php");
>>
>> This don't:
>> include_once('../adodb/adodb.inc.php');
>
> safe_mode and that other security restriction on what you can/can't
> include do this, I think...
>
> Which is probably hack to save you from somebody pushing
> '../../../../../etc/passwd' into:
> include $myfile;
> but so it goes.
>
> Meanwhile, back at the ranch, if you set include_path you'd be able to
> move on to something productive :-) :-) :-)
>