Re: Detected a pattern that malfunctions includes

From: Date: Fri, 06 Oct 2006 16:24:51 +0000
Subject: Re: Detected a pattern that malfunctions includes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-242759@lists.php.net to get a copy of this message
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 :-) :-) :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#242759) next »