以下相同代码在bigrock服务器上有效,但在hostgator服务器上无效。
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://sms.thinkbuyget.com/api.php?username=".$_SESSION['sms_data']['thinkbuyget_username']."&password=".$_SESSION['sms_data']['thinkbuyget_password'],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
));
$response = curl_exec($curl);
$info = curl_getinfo($curl);
$present_today = $response;
我无法在任何CPanel上找到简单的Apache选项。那么如何找到curl选项并启用它呢?