当我上传几个文件使用Valmus Uploader,我如何“与他们合作”,即。存储在MySQL数据库,裁剪或调整大小等...Valums上传的文件在哪里? (我必须将它们存储在MySQL数据库与PHP)
但是,这些文件在哪里,我如何访问它们?
tnx in adv !!!
当我上传几个文件使用Valmus Uploader,我如何“与他们合作”,即。存储在MySQL数据库,裁剪或调整大小等...Valums上传的文件在哪里? (我必须将它们存储在MySQL数据库与PHP)
但是,这些文件在哪里,我如何访问它们?
tnx in adv !!!
好吧,我不得不做的是设置操作文件是php.php,从服务器目录 ;-)
TNX给所有人!
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
}
明白,但他们的(形式)名称是什么? – user198003 2011-01-22 17:23:43
行动:../server/php.php
,
文件将使用演示时,在server/uploads
,确保你在这个目录CHMOD 777
`的print_r($ _ FILES)`会告诉你。 – mario 2011-01-22 17:31:51