Page 1 of 1

OpenDir help

Posted: Wed Jan 09, 2008 12:41 pm
by jeremyleyden
I recently removed some code form a website, but I left an @opendir function in the code... nothing else was done to the handle, but I did not have a closedir on the page. Is it possible that this killed the whole server? What happens to these handles in PHP5?

Please tell me I didn't kill the server...

Thank you in advance!

Re: OpenDir help

Posted: Thu Jan 10, 2008 10:14 pm
by RobertGonzalez
Generally PHP frees resources when the script terminates. But there is a chance that the script is using enough server resource that it is/has crashed the web server you are running on. The only way to see if it is running is by trying to request a web file and see if it serves.