The error message code reads:
in <my PHP program> on line 29PHP Warning: fsockopen(): php_network_getaddresses: gethostbyname failed
<domain name>:80 in <my PHP program> on line 29PHP Warning: fsockopen(): unable to connect to
Only two things have been changed between working and not working: (1) SDSL line for ADSL line (2) SDSL modem for ADSL modem.
Here's the code fragment:
Code: Select all
function pullpage( $host, $usepath, $postdata = "e;"e; ) {
# open socket to filehandle(epdq encryption cgi)
$fp = fsockopen( $host, 80, $errno, $errstr, 60 );
# check that the socket has been opened successfully
if( !$fp ) {
$errorString = "e;<p>$errstr ($errno)</p>"e;;
$errorStatus = true;
}