2011-01-22 63 views

回答

0

好吧,我不得不做的是设置操作文件是php.php,从服务器目录 ;-)

TNX给所有人!

2

PHP将上传的文件列表放到$ _FILES全局变量中(请参阅文档:http://www.php.net/manual/en/features.file-upload.post-method.php)。

可以遍历上传这样的文件:

foreach($_FILES as $file) { 
    // $file['tmp_name'] is where the file resides on the disk 
    // use move_uploaded_file() to move it elsewhere 
    // $file['name'] is the name of the file on the sender's computer 
} 
+0

明白,但他们的(形式)名称是什么? – user198003 2011-01-22 17:23:43

0

行动:../server/php.php

文件将使用演示时,在server/uploads,确保你在这个目录CHMOD 777

相关问题