note 30355 added to function.fsockopen
| From: | djot at hotmail dot com | Date: | Fri, 14 Mar 2003 23:37:25 +0000 |
| Subject: | note 30355 added to function.fsockopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45327@lists.php.net to get a copy of this message | ||
Hi,
I have problems with fsockopen() and the new php version.
fsockopen (and my unchanged script) did work in previous php versions. the new php version crashes
with error given beneath.
if i check www.heise.de, it succeeds. if i misspell it (like www.heissssssssss.de) the script
crashes.
what did change in the new php version? how to get back an error code, instead of the script
crashing?
thx
Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or
service not known in /www/htdocs/www/monitor/class.browser.php on line 129
Warning: fsockopen() [function.fsockopen]: unable to connect to www.heise.de:80 in
/www/wg-zimmer/htdocs/www/monitor/monitor/class.browser.php on line 129
this is line 129:
$fp = fsockopen("$host",$port,$errno,$errstring,$time_out);
--
http://www.php.net/manual/en/function.fsockopen.php
http://master.php.net/manage/user-notes.php?action=edit+30355
http://master.php.net/manage/user-notes.php?action=delete+30355
http://master.php.net/manage/user-notes.php?action=reject+30355