Hi everyone!
I'm trying to implement a bit of caching. By that I mean I capture the output of a php file using ob_start() and similar functions, then store the result in a text file. Then next time the page is requested I just readfile() the text file instead of processing the whole php file again.
It all works fine, except that after 500 page requests the whole site, and every other site in IIS, goes down and shows only "No input file specified." in the browser when any php page is requested. I am using the "auto_prepend_file" and "auto_apppend_file" settings to manage the caching so that I don't need to edit every single page on the site.
After banging my head against the wall for a while, I think I have found that the problem lies in the fact that I am calling exit() from the prepend.php file. (If the cache file already exists, I pipe it out, then exit so that the real php file doesn't get executed.)
As I said everything seems to work just peachy keen until about the five hundredth page request, at which point the whole site and everything else goes down in flames. Simply restarting IIS fixes the problem (temporarily of course).
Does anyone have any ideas at all?
Thanks a bunch.
Details:
- Windows Server 2003 SP 2
- IIS 6
- PHP 5.2.5 through ISAPI
PHP crashes (every site in IIS) after 500 page requests
Moderator: General Moderators
Re: PHP crashes (every site in IIS) after 500 page requests
Does anyone have at least an idea of where I could start looking for the problem?
--
Tim
--
Tim