if(isset($basic)){
function meme(){
$i = 1;
while(file_exists("pg/".$i.".jpg")){
$file[$i] = "pg/".$i.".jpg";
$i++;
}
}
$file[1] = 'pg_1.jpg';
$file[2] = 'pg_2.jpg';
$file[3] = 'pg_3.jpg';
$file[4] = 'pg_4.jpg';
$file[5] = 'pg_5.jpg';
$file[6] = 'pg_6.jpg';
$file[7] = 'pg_7.jpg';
$file[8] = 'pg_8.jpg';
$file[9] = 'pg_9.jpg';
$file[10] = 'pg_10.jpg';
$file[11] = 'pg_11.jpg';
$file[12] = 'pg_12.jpg';
$file[13] = 'pg_13.jpg';
$file[14] = 'pg_14.jpg';
$tuomeme = 'pg/'.$file[rand(1, 14)];
$album_details = array(
'message'=> 'CiaoCiao',
'name'=> 'CiaoCiaoCiao'
);
$create_album = $facebook->api('/me/albums', 'post', $album_details) or die("Errore nella connessione con Facebook");
$album_uid = $create_album['id'];
$photo_details = array(
'message'=> he(idx($basic, 'name')).''
);
$finale=$tuomeme;
$photo_details['image'] = '@' . realpath($finale);
$upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details) or die("Errore nella connessione con Facebook");
大膽的錯誤是:錯誤的PHP SDK Facebook的 - 奇怪的錯誤
[18-Jun-2012 19:30:32 UTC] PHP Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/xtigbexz/public_html/dev/index.php:27) in /home/public_html/sdk_php/facebook.php on line 7 [18-Jun-2012 19:30:32 UTC] PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/public_html/dev/index.php:27) in /home/xtigbexz/public_html/sdk_php/facebook.php on line 7 [18-Jun-2012 19:30:36 UTC] PHP Fatal error: Uncaught CurlException: 26: couldn't open file ""
thrown in /home/public_html/sdk_php/base_facebook.php on line 423
你能幫助我嗎?請!
併爲此:[18-Jun-2012 19:30:36 UTC] PHP致命錯誤:Uncaught CurlException:26:無法打開文件「」? – Zic
你傳遞一個空字符串,應該有一個文件被調用。 PHP的錯誤信息有時候可能很神祕。這個錯誤的根本原因可能是給你第一個錯誤的同一個問題。 – cpilko
老兄,請獲得一些基本的PHP知識和調試技巧,而不是讓你的問題在這裏逐一解決...... – CBroe