jeremyleyden Posted January 9, 2008 Share Posted January 9, 2008 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... Quote Link to comment https://forums.phpfreaks.com/topic/85205-opendir-help/ Share on other sites More sharing options...
The Little Guy Posted January 9, 2008 Share Posted January 9, 2008 I believe it will automatically close the handle when the script stop executing. If you want/need to close it early, then you should use closedir Quote Link to comment https://forums.phpfreaks.com/topic/85205-opendir-help/#findComment-434696 Share on other sites More sharing options...
rhodesa Posted January 9, 2008 Share Posted January 9, 2008 PHP automatically closes all File and Directory handles when the script completes. So this shouldn't be your problem. Quote Link to comment https://forums.phpfreaks.com/topic/85205-opendir-help/#findComment-434700 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.