this is my fsockopen satement it will check about 4/5 urls and then time out
(exceed 30 second timeout error) on the 5/6 url,  I have no idea, why my
program wont continue checking all the urls in one go.


$socket = @fsockopen($urlArray["host"], $urlArray["port"], $errnum, $errstr,
100);


----- Original Message -----
From: "Tim" <[EMAIL PROTECTED]>
To: "David Ovens" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, August 13, 2001 11:55 AM
Subject: Re: [PHP] Using fsockopen()


> Is the timeout coming from fsockopen() or from the program using too
> much time?
>
> I've used @fsockopen() before without any issues (at least on Linux and
> Solaris), but if your script is running for a long time, you may need to
> tweak the execution time limit:
>
> http://www.php.net/manual/en/function.set-time-limit.php
>
> - Tim
>
> On 13 Aug 2001 11:40:04 +0100, David Ovens wrote:
> > Thought I would repost, does anyone have a solution ?
> >
> > I am using php, apache on a windows system.
> >
> > ----- Original Message -----
> > From: "David Ovens" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, August 13, 2001 1:26 AM
> > Subject: [PHP] Using fsockopen()
> >
> >
> > > I am making a program, that uses the fsockopen command looking at
various
> > > url's, but occasionally it stops with a timeout error, I have used the
@
> > > infront of the fsockopen command, but it still times out with the
error,
> > how
> > > do I make php ignore the error so that I can make it automatically
retry
> > or
> > > do something else  ??
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to