[PHP] Detected a pattern that malfunctions includes
Hi, 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'); Any ideas ? Warm Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Detected a pattern that malfunctions includes
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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Detected a pattern that malfunctions includes
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 :-) :-) :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Detected a pattern that malfunctions includes
On Fri, October 6, 2006 11:27 am, Deckard wrote: I've already set my include_path to /var/www/html and good :( Then you don't need ../ at all... Copy paste the exact error message you get, and tell us where the URL is that starts the problem. -- 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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php