2014-12-20 93 views
-2

enter image description here調用未定義功能_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":"', '"');  
} 
我已經卷曲安裝了最新版本,但它似乎並沒有解決問題

什麼建議嗎?

+3

什麼是'_curl()'函數? – zerkms

+1

...這是一個捲髮可能的功能;爲禿頭的人。 –

回答

0

捲曲與發起,例如:

$ch = curl_init($url); 

沒有函數調用_curl()

推薦閱讀:

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

+0

該函數實際上在我的一個cPanel WebHosting中有效。 但不是在一個Apache服務器,我不知道爲什麼。 – user3549878