Update of /cvsroot/phpweather/phpweather
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29063
Modified Files:
data_retrieval.php
Log Message:
Don't display all sorts of nasty error messages if the connection
cannot be established --- this error condition is already handled at
other places in the script.
Index: data_retrieval.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/data_retrieval.php,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- data_retrieval.php 10 May 2004 09:00:26 -0000 1.40
+++ data_retrieval.php 17 Jun 2004 13:10:43 -0000 1.41
@@ -181,14 +181,14 @@
if ($this->properties['use_proxy']) {
/* We use a proxy */
- $fp = fsockopen($this->properties['proxy_host'],
- $this->properties['proxy_port']);
+ $fp = @fsockopen($this->properties['proxy_host'],
+ $this->properties['proxy_port']);
$request = "GET http://$host$location $request" .
"Host: $host\r\n" .
"Content-Type: text/html\r\n" .
"Connection: Close\r\n\r\n";
} else {
- $fp = fsockopen($host, 80);
+ $fp = @fsockopen($host, 80);
$request = "GET $location $request" .
"Host: $host\r\n" .
"Content-Type: text/html\r\n" .
|