Error management

This commit is contained in:
Laurent Destailleur 2010-10-05 18:08:00 +00:00
parent 6eefcc8cf8
commit 1e40cec3bf

View File

@ -244,6 +244,12 @@ class langAutoParser {
//print "Url to translate: ".$url."\n";
if (! function_exists("curl_init"))
{
print "Error, your PHP does not support curl functions.\n";
die;
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);