Hi again!
Question: Does anyone know of a possibility to exclude files which have been included _before_ my script starts on the fly (e.g. at the first lines after the entrypoint) ?
Reasons: This ISP of my customer somehow includes a bunch of old PEAR files by default which I dont need or of which I need in a later version. So when several PEAR-packages perform a require_once('HTML/foo.php') PHP recognizes that it has already included foo.php and does not overload with the one specified in my "user space" code.
Yuk. That's awful. The host should NOT have this set. The host should allow it as an option, but not as a default.
http://www.php.net/ini_set
You can override the auto_append_file value of php.ini with a per-directory .htaccess file, with something like (untested):
<IfModule mod_php4.c> php_value auto_append_file '' </IfModule>
OR
<IfModule mod_php4.c> php_value auto_append_file NULL </IfModule>
... placed in your http document root should do the trick. Of course, if the host doesn't allow per-dir .htaccess files, then you're screwed. I'd move hosts very quick.
--- Justin French http://indent.com.au
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php