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
SNOOPY Timeout
Moderator: General Moderators
which version of php do you use?
Does this version support socket_set_timeout?
This function is exposed by the standard module (if available)
Code: Select all
<?php phpinfo(); ?>This function is exposed by the standard module (if available)
Code: Select all
<?php echo '<pre>';
print_r(get_extension_funcs('standard'));
echo '</pre>';