|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-01 13:27 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 21:00:01 2025 UTC |
It seem if you pass invalid host name to fsockopen, and you are online, script crashes. If offline all is ok. Example: $sock = fsockopen($ns, 53, $error, $errstr, 60); if(!$sock) { printf("Nije uspela konekcija!<br>\n"); return -1; } else { } if ns is invalid like yuo have 2 dots in name script do a printf and exit's form script (this was a function). It seems if lookup fails, there are problems.