调用未定义的函数_curl()

时间:2014-12-20 21:56:41

标签: php curl undefined

enter image description here

$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":"', '"');    
}

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

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

使用例如:

启动卷曲
$ch = curl_init($url);

没有名为_curl()的函数

建议阅读:

http://php.net/manual/en/book.curl.php