PHP捲曲後不工作..PHP捲曲後場不工作
這裏是我的代碼
function post_to_url($url, $data) {
$fields = '';
foreach($data as $key => $value) {
$fields .= $key . '=' . $value . '&';
}
rtrim($fields, '&');
$post = curl_init();
curl_setopt($post, CURLOPT_URL, $url);
curl_setopt($post, CURLOPT_POST, count($data));
curl_setopt($post, CURLOPT_POSTFIELDS, $fields);
curl_setopt($post, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($post);
curl_close($post);
}
post_to_url("http://www.i-autosurf.com/signup.php",$data);
可以請你籤的錯誤..
是腳麻或代碼網站有什麼不同嗎?
'$ fields'也允許一個數組 – Neat
真的???????? – learningpython
爲了將來的參考,添加你的錯誤,並告訴你你已經嘗試做什麼 - 不要只是要求調試和代碼 – KDOT