Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- php socket timeout error while connecting to a host
- $fp=fsockopen("tcp://xxx.xxx.xxx.xxx", 6666 ,$errno, $errstr);
- if (!$fp){
- echo "error->> ".$errno."___".$errstr." ";
- }
- else{
- echo "Connected successfully";
- fclose($fp);
- }
Add Comment
Please, Sign In to add comment