Hi, a PHP/Curl script that used to work - no longer works. I was wondering if you could look into it. My script simply performs CURL to a particular address - with a non-standard port. The output is both printed on the screen and sent to a logfile. However, the CURL command seems to not be functioning anymore. http://path79.x10.mx/Thermo/cgoog1.php . A more simple version of the same script can be found here http://path79.x10.mx/Thermo/cgoog.php . Thank you for your time and assistance.
---------- Post added at 03:54 PM ---------- Previous post was at 03:44 PM ----------
Here is the code that USED to work -- that no longer works
<?php
$url = "http://PRIVATE:32101/tstat";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
$response = curl_exec ($ch);
if(is_int($response)) {
die("Errors: " . curl_errno($ch) . " : " . curl_error($ch));
}
curl_close ($ch);
print "Remote Site : http://**PRIVATE**:32101<br /><hr />$response";
?>
---------- Post added at 03:54 PM ---------- Previous post was at 03:44 PM ----------
Here is the code that USED to work -- that no longer works
<?php
$url = "http://PRIVATE:32101/tstat";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
$response = curl_exec ($ch);
if(is_int($response)) {
die("Errors: " . curl_errno($ch) . " : " . curl_error($ch));
}
curl_close ($ch);
print "Remote Site : http://**PRIVATE**:32101<br /><hr />$response";
?>