On Wednesday 17 March 2004 17:33, Andreas Brunschweiler wrote: > In this code, the include file is always parsed, even if $includefiles is > set to 0. Even the files which are 'required()' inside incfile.php are > parsed (observed with the program Filemon, which registers file access). I > tried various ways to nest the if statements, but none helped. Any > suggestions to have incfile.php parsed only if needed? > > I am using PHP Version 4.3.4 as Module, Apache/2.0.48, on Windows 2000.
If you do this ... <?php $includefiles=0; if($includefiles==1) { include('incfile.php'); } ?> ... does 'incfile.php' get included? If yes, you've probably found a bug in PHP. If no then you've got a bug in your code. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Dentist, n.: A Prestidigitator who, putting metal in one's mouth, pulls coins out of one's pockets. -- Ambrose Bierce, "The Devil's Dictionary" */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php