$_FILES problem
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

$_FILES problem

From: Iced Milk Tea <wingwingwow@gmail.com>
Date: Wed Sep 07 2005 - 11:35:04 CEST

I am trying to program a upload system.

The following code work very fine,

$file_name = $_FILES['uploadFile'. $x]['name'];
$size = filesize($file_name);
$type = mime_content_type($file_name);

However, when I change to

$file_name = $_FILES['uploadFile'. $x]['name'];
$size = $_FILES['uploadFile'. $x]['size'];
$type = $_FILES['uploadFile'. $x]['type'];

The program fail to give me any result.

Is there any problem happan in my code?

Thanks in advance for your advice.
Received on Tue Oct 18 02:19:38 2005