OpenDir help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jeremyleyden
Forum Newbie
Posts: 1
Joined: Wed Jan 09, 2008 12:38 pm

OpenDir help

Post 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!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: OpenDir help

Post 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.
Post Reply