Uploadify Upload file http500 exception

Source: Internet
Author: User
Uploadify Upload file http500 error
I uploaded the file successfully, but reported an HTTP 500 error
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));//This has been performed $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 ');


Please help a master to do a favor Ah!


------Solution--------------------
Open the error prompt.
In php.ini
Display_errors=on
Error_reporting=e_all & ~e_notice
------Solution--------------------
PHP program estimates hang up, slowly check the reason.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    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.