Page 1 of 1

SNOOPY Timeout

Posted: Sat Oct 19, 2002 4:14 pm
by chvol
Hello all,

I am running Windows 98, Apache 1.3.14 webserver, PHP 4.0.5 from PHP Triad and using class SNOOPY 0.94 (written in PHP) functions fetch and fetchlinks to retrieve web pages. The program hangs at some pages and I want it to time out, so I changed 0 to 10 in line:

var $read_timeout = 10; // timeout on read operations, in seconds.

My program gets:

Warning: socket_set_timeout() is not supported in this PHP build in C:\apache\htdocs\snoopy.class.inc on line 740.

Line 740 is:

socket_set_timeout($fp, $this->read_timeout);

Now functions fetch and fetchlinks don’t retrieve anything.

Charlie
chvol@aol.com

Posted: Sat Oct 19, 2002 7:12 pm
by volka
which version of php do you use?

Code: Select all

<?php phpinfo(); ?>
Does this version support socket_set_timeout?
This function is exposed by the standard module (if available)

Code: Select all

<?php echo '<pre>';
print_r(get_extension_funcs('standard'));
echo '</pre>';