I want to test whether everything is okay or not with the curl in my PHP installation,
I tried the below code, but it I got internal server error! Would anybody help me with this.
<?php
// Create a cURL handle
$ch = curl_init('http://xx.xx.xx.xxx/Dinga/');
// Execute
curl_exec($ch);
// Check if any error occurred
if (!curl_errno($ch)) {
$info = curl_getinfo($ch);
echo 'Took ', $info['total_time'], ' seconds to send a request to ', $info['url'], "\n";
}
// Close handle
curl_close($ch);
?>
print_r( $info);