php
  • facebook
  • sdk
  • 2012-06-18 2 views -1 likes 
    -1
    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"); 
    

    굵은 이상한 오류 :오류 - 오류가

    [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

    당신이 날 도와 드릴까요? 부디!

    답변

    0

    파일의 라인 27은 /home/xtigbexz/public_html/dev/index.php 출력을 생성하고 있습니다. 그 후에는 $_SESSION 또는 $_COOKIE 변수를 설정하려고하는 Facebook API를 호출하고 있습니다. 스크립트가 출력을 생성 한 후에는 그 중 하나를 설정할 수 없습니다.

    +0

    다음을 위해 : [18-Jun-2012 19:30:36 UTC] PHP 치명적 오류 : 잡히지 않은 CurlException : 26 : 파일 ""을 열지 못했습니다? – Zic

    +0

    파일을 불러올 위치에 빈 문자열을 전달하고 있습니다. 때때로 PHP의 오류 메시지가 이상하게 보일 수 있습니다. 이 오류의 근본 원인은 첫 번째 오류를주는 것과 동일한 문제 일 수 있습니다. – cpilko

    +0

    야, 기본 PHP 지식 및 디버깅 기술을 얻으십시오. 대신 문제가 하나씩 차례로 해결되도록하십시오. – CBroe

    관련 문제