SNOOPY Timeout

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chvol
Forum Newbie
Posts: 20
Joined: Fri Apr 26, 2002 2:49 pm

SNOOPY Timeout

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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>';
Post Reply