failed to open stream: Too many open files

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
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

failed to open stream: Too many open files

Post by pcoder »

Hi,
Does any body have any idea about this error:
"failed to open stream: Too many open files"
I havenot changed any configuration and even in a PHP code on the site recently.
I haven't been able to figure it out the solutions. Is this because of the operating system?

Thanks
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: failed to open stream: Too many open files

Post by alex.barylski »

Reboot the system...if your on a shared host...ask your hosting provider to take a look.

Unless your PHP script is opening hundreds of files in a single instance and not closing them...this error shouldn't occur...weird
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Re: failed to open stream: Too many open files

Post by pcoder »

Thanks for the reply hockey.
Finally, i found it is because of the hosting server and told them the error. Now it is fine.
Post Reply