Re: [PHP] Handle time-outs and errors with file()

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 9:58 am, John Papas wrote: > I'm using file() to get the contents of a remote page in my script but > I cannot find any information regarding how I could *gracefully* > handle a broken network connection or even a time-out (slow > connection). > > Is there a way? > > ---

Re: [PHP] Handle time-outs and errors with file()

2008-01-29 Thread Eric Butera
On Jan 29, 2008 10:58 AM, John Papas <[EMAIL PROTECTED]> wrote: > I'm using file() to get the contents of a remote page in my script but > I cannot find any information regarding how I could *gracefully* > handle a broken network connection or even a time-out (slow > connection). > > Is there a way

Re: [PHP] Handle time-outs and errors with file()

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 10:58 AM, John Papas <[EMAIL PROTECTED]> wrote: > I'm using file() to get the contents of a remote page in my script but > I cannot find any information regarding how I could *gracefully* > handle a broken network connection or even a time-out (slow > connection). > > Is there a wa