网站-php上传文件出现错误,求大家解释一下,怎么修改?

WBOY
Release: 2016-06-02 11:32:35
Original
965 people have browsed it

php网站

一共四个文件:
1、

  =SITE_NAME?> 

=SITE_NAME?>
=SITE_ADV?>


Copy after login

2、

 
Copy after login

3、

 0){ $uploadtype = false; switch($_FILES['uploadfile']['error']){ }}$suffix = strtolower(substr($_FILES['uploadfile']['name'],-4)); if(!valid_suffix($suffix)){ $uploadtype = false;} if($uploadtype === false){}else{$userip = ip2long($_SERVER['REMOTE_ADDR']);$time = time();$newpath = UPLOAD_DIR . $time .'x'. $userip . $suffix;if(is_uploaded_file($_FILES['uploadfile']['tmp_name'])){if(!move_uploaded_file($_FILES['uploadfile']['tmp_name'],$newpath)){$uploadtype = false;}else{$uploadtype = true;}}else{$uploadtype = false;}}if($uploadtype === false){}else{setcookie('uploaded',$time.'x'.$userip.$suffix.'|'.$_COOKIE['uploaded'],time()+3600*24*365);}?> =SITE_NAME?> 

=SITE_NAME?>
=SITE_ADV?>


上传失败!

文件不存在,过大或不允许该扩展名。

重新上传


返回首页 Powered by Straysky

上传成功!

文件代码:
标准:
HTML:

图片代码:
论坛:
HTML:

继续上传


返回首页 Powered by Straysky

Copy after login

4、

 

Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!