Re: File Upload - or why caffeine and nicotine nearly won the day

From: Date: Thu, 13 Jul 2000 22:46:50 +0000
Subject: Re: File Upload - or why caffeine and nicotine nearly won the day
Groups: php.general 
Request: Send a blank email to php-general+get-6560@lists.php.net to get a copy of this message
> Created a function - with the identical code to the previous working > example, except for passing the form variable and the new name of the > uploaded file - like this: > > function uploadImage($userfile,$newfilename) > > Didn't work at all. After a while I de-bugged the passed function arguments > within the function itself. A list of results: > > echo $userfile: c:\\test.gif (ok, an escaped slash) > echo $userfile_name: blank > echo $userfile_type: blank > echo $userfile_size: blank You probably need to declare those three variables as global within your function. __________________________________________________________________ Colin Viebrock easyDNS Technologies Co-Founder control your domain http://www.easyDNS.com

« previous php.general (#6560) next »