PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 19th, 2002, 09:22 PM
chvol chvol is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cambridge, MA USA
Posts: 12 chvol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SNOOPY Timeout

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:apachehtdocssnoopy.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

Reply With Quote
  #2  
Old October 21st, 2002, 01:03 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: SNOOPY Timeout

This is a known problem in earlier versions of PHP. If you upgrade to the latest release, your problems should go away. See this bug report:

http://bugs.php.net/bug.php?id=16326

Reply With Quote
  #3  
Old October 21st, 2002, 01:39 AM
chvol chvol is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cambridge, MA USA
Posts: 12 chvol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: SNOOPY Timeout

Hello,

I am trying to reply to the 2nd message here. Unfortunately, this page lists "Reply to : SNOOPY Timeout" while the 2nd message subject is "RE: SNOOPY Timeout" and there's no REPLY there. Now, maybe it means that you are replying to this whole thread and so new messgaes go onto the end and you're really replying to the last message in
the thread. I don't know - but I am completely used to such nonsense since the design of most things associated with computers is incredibly poor, so I shouldn't be surprised.

Speaking of which, another common strange activity associated with computers is the practice of telling people "Do XYZ" but never telling them how. In this case, it's "Upgrade to the latest release." - which supposedly I just did 2 days ago.

Can you do me a real big favor and tell me why you would say to do something but not say how?

Charlie

Reply With Quote
  #4  
Old October 21st, 2002, 02:16 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: SNOOPY Timeout

Charlie,

You state in your first post that you are using PHP 4.0.5. A cursory check of php.net would tell you that it is not the most recent version.

As for why I did not tell you how to upgrade to the latest version, I figured if you needed to know you would either 1) do a little research or 2) ASK.

We've been through this before Charlie. The last time you got all bent out of shape because I asked you to be a little more specific in your request. This time you are bent out of shape because I didn't give you all the information you deemed necessary. I am not a mind reader. I can't determine what your every whim is and at what level you are in PHP.

Please, if you have problems myself and others are more than willing to help out, but you need to drop the attitude.

Reply With Quote
  #5  
Old October 29th, 2002, 04:22 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: SNOOPY Timeout

You didn't say PHP.NET! No, I'm not bent out of shape. I'm just someone with a lot of ideas on how this planet can be improved - and some other people "get bent out of shape" when I make suggestions. You know, Type A and Type B personalities.

Charlie

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > SNOOPY Timeout


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek