move_uploaded_file() or copy() not working...

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Sun Jul 13, 2003 4:24 am

do you have register_globals OFF ?

if so you would need to access the variables through the $_FILES array eg

$_FILES['userfile']['tmp_name']
$_FILES['userfile']['type']
$_FILES['userfile']['name']
$_FILES['userfile']['size']
$_FILES['userfile']['error']
avatar image based upon nasas apod (only updates if I post though)

pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Mon Jul 14, 2003 2:44 am

try

move_uploaded_file($uf_tmp_name, ..whereever..);

the variable $uf_name should hold the client name and not the pointer to the tmp version.
avatar image based upon nasas apod (only updates if I post though)

Post Reply