【发布时间】:2013-09-11 20:59:56
【问题描述】:
我尝试将 curl 结果保存到 sql 但它不起作用
$Curl_Session = curl_init('https://graph.facebook.com/xxxxxxxxxx/feed');
curl_setopt ($Curl_Session, CURLOPT_POST, 1);
curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS, "access_token=$ad7kfarfish&message=$message");
curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
$a8=curl_exec ($Curl_Session);
curl_close ($Curl_Session);
我什么都试
我试试
$Curl_Session = curl_init('https://graph.facebook.com/xxxxxxxxxx/feed');
curl_setopt ($Curl_Session, CURLOPT_POST, 1);
$a8=curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS, "access_token=$ad7kfarfish&message=$message");
curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
curl_exec ($Curl_Session);
curl_close ($Curl_Session);
【问题讨论】:
-
如果要保存到数据库,请务必转义要保存的数据