Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 调用未定义的函数_curl()_Php_Curl_Undefined - Fatal编程技术网

Php 调用未定义的函数_curl()

Php 调用未定义的函数_curl(),php,curl,undefined,Php,Curl,Undefined,我已经安装了curl的最新版本,但似乎无法解决问题 有什么建议吗?Curl是通过以下方式启动的,例如: $uid = mysql_real_escape_string($_SESSION['username']); $url = "https://blockchain.info/merchant/$guid/new_address?password=$main_password&second_password=$second_password&label=$uid"; if (i

我已经安装了curl的最新版本,但似乎无法解决问题


有什么建议吗?

Curl是通过以下方式启动的,例如:

$uid = mysql_real_escape_string($_SESSION['username']);
$url = "https://blockchain.info/merchant/$guid/new_address?password=$main_password&second_password=$second_password&label=$uid";
if (isset($_POST['amount'])){
    $_SESSION['USD_amount'] = $_POST['amount'];
    $_SESSION['BTC_amount'] = number_format($_SESSION['USD_amount']/$rate, 8, '.', '');
    $temp = _curl($url, '', '');
    $_SESSION['BTC_Address'] = get_string_between($temp, 'address":"', '"');    
}
没有叫做_curl的函数

建议如下:


什么是卷发函数?…这是一个卷发函数;对于秃顶的人来说,这个功能实际上在我的一个cPanel网络主机中起作用。但不是在apache服务器中,我不知道为什么。
$ch = curl_init($url);