Re: [PHP] Too many open files

2012-08-12 Thread Matijn Woudt
On Fri, Aug 10, 2012 at 6:02 PM, Daniel Brown wrote: > On Fri, Aug 10, 2012 at 10:22 AM, Robert Cummings > wrote: >> On 12-08-09 08:01 PM, Al wrote: >>> I can't find a way to see what files could be open or what the limit is. >>> >>> Site is on a shared server, cPanel. >> >>^

Re: [PHP] Too many open files

2012-08-12 Thread Al
On 8/10/2012 12:02 PM, Daniel Brown wrote: On Fri, Aug 10, 2012 at 10:22 AM, Robert Cummings wrote: On 12-08-09 08:01 PM, Al wrote: I can't find a way to see what files could be open or what the limit is. Site is on a shared server, cPanel. ^ THIS is probably y

Re: [PHP] Too many open files

2012-08-10 Thread Daniel Brown
On Fri, Aug 10, 2012 at 10:22 AM, Robert Cummings wrote: > On 12-08-09 08:01 PM, Al wrote: >> I can't find a way to see what files could be open or what the limit is. >> >> Site is on a shared server, cPanel. > >^ > THIS is probably your problem. Too many open files ind

Re: [PHP] Too many open files

2012-08-10 Thread Robert Cummings
On 12-08-10 02:49 AM, Matijn Woudt wrote: On Fri, Aug 10, 2012 at 5:36 AM, Jim Lucas wrote: On 8/9/2012 5:01 PM, Al wrote: Getting "Too many open files" error when processing an email batch process. I've looked extensively and can't find more than about 100 files that could be open. All my

Re: [PHP] Too many open files

2012-08-10 Thread Robert Cummings
On 12-08-09 08:01 PM, Al wrote: Getting "Too many open files" error when processing an email batch process. The batch size is actually rather small and the email text is small likewise. I've looked extensively and can't find more than about 100 files that could be open. All my fetching is with

Re: [PHP] Too many open files

2012-08-09 Thread Matijn Woudt
On Fri, Aug 10, 2012 at 5:36 AM, Jim Lucas wrote: > On 8/9/2012 5:01 PM, Al wrote: >> >> Getting "Too many open files" error when processing an email batch >> process. >> >> I've looked extensively and can't find more than about 100 files that >> could be open. All my fetching is with get_file_co

Re: [PHP] Too many open files

2012-08-09 Thread Jim Lucas
On 8/9/2012 9:40 PM, Alan Hoffmeister wrote: +1 to fopen and fclose. You can implement your function: function read($file){ if ( $fh = fopen($file, 'r') ) { $data = fread($fh, filesize($file)); fclose($fh); } } echo read('hello-world.txt'); echo read('hello-world1.txt'); echo r

Re: [PHP] Too many open files

2012-08-09 Thread Jim Lucas
On 8/9/2012 5:01 PM, Al wrote: Getting "Too many open files" error when processing an email batch process. I've looked extensively and can't find more than about 100 files that could be open. All my fetching is with get_file_contents(); Why not use fopen() and other related functions to open

[PHP] Too many open files

2012-08-09 Thread Al
Getting "Too many open files" error when processing an email batch process. The batch size is actually rather small and the email text is small likewise. I've looked extensively and can't find more than about 100 files that could be open. All my fetching is with get_file_contents(); I can't

Re: [PHP] Too many open files

2009-04-05 Thread Daniel Brown
On Sun, Apr 5, 2009 at 12:57, Larry Garfield wrote: > > I know PHP has a max-files-open limit somewhere.  Is that per process, per > user, or per server?  Is this even something I can address myself in my app, > or does it indicate that the server itself is getting over-busy and I have to > just b

[PHP] Too many open files

2009-04-05 Thread Larry Garfield
I've a site on a shared host that is for the most part working well. However, more recently I've started getting the following error: failed to open stream: Too many open files in system in on line . When it happens it will happen to everyone for a short period, and then stop. There does no

Re: [PHP] Too many open files

2003-01-10 Thread Gerald Timothy Quimpo
On Friday 10 January 2003 09:27 pm, Michael Sims wrote: > >> Warning: main(footer.inc.php) [function.main.html]: failed > >> to create stream: > >> Too many open files in /www/sql/main.php on line 96 > As someone else said, this is an OS issue, but if you're running on > Li

Re: [PHP] Too many open files

2003-01-10 Thread Michael Sims
On Fri, 10 Jan 2003 10:38:31 + (GMT), you wrote: >On Wed, 8 Jan 2003, Macrosoft wrote: > >> Can anybody explain me what does mean error: >> >> Warning: main(footer.inc.php) [function.main.html]: failed to >> create stream: >> Too many open files in /www/sql/main.php on

Re: [PHP] Too many open files

2003-01-10 Thread Rus Foster
On Wed, 8 Jan 2003, Macrosoft wrote: > Can anybody explain me what does mean error: > > Warning: main(footer.inc.php) [function.main.html]: failed to > create stream: > Too many open files in /www/sql/main.php on line 96 > > (phpPgAdmin 2.4.2 scripts, PHP 4.3.0

[PHP] Too many open files

2003-01-10 Thread Macrosoft
Can anybody explain me what does mean error: Warning: main(footer.inc.php) [function.main.html]: failed to create stream: Too many open files in /www/sql/main.php on line 96 (phpPgAdmin 2.4.2 scripts, PHP 4.3.0 + Apache) Does PHP exceed any limit of opened fil