closeDir function

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
yaron
Forum Contributor
Posts: 157
Joined: Fri Aug 22, 2003 8:40 am

closeDir function

Post by yaron »

is there a need to close a directory with closeDir() or it will close by itself after the script is over?

Thanks
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Interesting subject.
Currently my server is having hardware redesigns, so I can test. But feel free to enable a mem/swap/cpu monitor, loop the opendir function a couple of tousand times, and see what happens.

Other thought is that perhaps there later will be an issue not terminating the handle of the opened dir after each opendir...

I would close it... ;)
Post Reply