Re: Using fsockopen()
| From: | David Ovens | Date: | Mon, 13 Aug 2001 11:00:24 +0000 |
| Subject: | Re: Using fsockopen() | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62404@lists.php.net to get a copy of this message | ||
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" <infoz@earthlink.net>
To: "David Ovens" <DOvens@doweb.co.uk>
Cc: <php-general@lists.php.net>
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" <DOvens@doweb.co.uk>
> > To: <php-general@lists.php.net>
> > 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>