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程序估计挂了,慢慢查原因。