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