upload filename?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mzfp2
Forum Contributor
Posts: 137
Joined: Mon Nov 11, 2002 9:44 am
Location: UK
Contact:

upload filename?

Post by mzfp2 »

I've managed to make a script that now that succesfully uploads a file to a desired destination

however i am having difficulty gettuing the file information, such filename etc, it always returns blank when i try the following:

$type = $_FILES['file']['type'];
or
echo $HTTP_POST_FILES[’userfile’][’tmp_name’];
or
echo '<pre>'; print_r($HTTP_POST_FILES); echo '</pre>';

doesnt print anything

however using this staement:
print_r($file);

print the tmp file, but thats as much as i can extrat?

I must be missing something
Post Reply