CSDN博客

img haihaiff

PHP这个题目要马上解决了 不拖了~~会PHP的都看看把~~现在总结在这里(我发了3贴 乱78遭的)

发表于2004/10/25 19:46:00  714人阅读

(2004-10-24 23:06:59)   E.E.(37543844)
http://210.35.68.16/files/upload.php  

(2004-10-24 22:32:40)   E.E.(37543844)
http://210.35.68.16/files/download.php?fn=123.gif
其中fn后面就是你上传的文件名字
E.E. 19:38:51
上传的文件大于1K,你就看到问题啦
E.E. 19:39:33
(2004-10-24 23:06:33)   E.E.(37543844)
<?
print_r($_REQUEST);print_r($_FILES['myfile']);
$pfn = $_POST["filename"]; $pext = substr(strrchr($_FILES['myfile']['name'], "."), 0);
if($pfn == "" || $_FILES['myfile']['size'] == 0){
 echo "<font size='5' color='#FF0000'>文档资料不完整!</font>";
}
else{
 $fn = "/home/files/eao/".$pfn.$pext;
 if(move_uploaded_file($_FILES['myfile']['tmp_name'], $fn)) {
  echo "<font size='5' color='#00FF00'>上传成功!</font>";
 }
 else{
  echo "发送失败(".$_FILES['myfile']['error'].")<pre>";
  print_r($_FILES);
 }
}
?>
 
E.E. 19:39:43
这就是源代码啦

 

阅读全文
0 0

相关文章推荐

img
取 消
img