uploadify上傳檔案報http500異常

來源:互聯網
上載者:User
uploadify上傳檔案報http500錯誤
我上傳檔案成功了,但是報http 500錯誤
HTML code
    

PHP code
$tempFile = $_FILES['Filedata']['tmp_name'];$targetPath = $_SERVER['DOCUMENT_ROOT'].$_REQUEST['folder'] . '/';$ext = pathinfo($_FILES['Filedata']['name']);$ext = $ext['extension'];if ($ext=='doc'||$ext=='pdf'||$ext=='txt') {    $name = md5(uniqid(rand().microtime())).'.'.$ext;    $targetFile =  str_replace('//','/',$targetPath) . $name;}move_uploaded_file($tempFile,iconv('utf-8','gbk', $targetFile));//這裡已經執行了$path =  str_replace($_SERVER['DOCUMENT_ROOT'],'',$targetFile);$param = array(         'name' => $name,         'path' => $path        );$data = Http::connect(CURL_HOST, CURL_PORT)->doPost(EN_SITEURL.'open.php/blog/logatt',$param, 'json');


請高手幫個忙啊!


------解決方案--------------------
把錯誤提示開啟。
php.ini中
display_errors=On
error_reporting=E_ALL & ~E_NOTICE
------解決方案--------------------
PHP程式估計掛了,慢慢查原因。
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.