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

From: Date: Thu, 13 Jul 2000 23:09:18 +0000
Subject: Re: File Upload - or why caffeine and nicotine nearly won the day
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6561@lists.php.net to get a copy of this message
> > echo $userfile: c:\\test.gif (ok, an escaped slash) > echo $userfile_name: blank > echo $userfile_type: blank > echo $userfile_size: blank > > Of course, the original variable OUTSIDE the function reported the correct > results. Thought a bit. The variable name $userfile is obviously a > construct. Tried passing it by reference: > > function uploadImage(&$userfile,$newfilename) > > Same problem. Does anybody out there in the PHP community have any ideas? > It can't be a bug. I've never, ever discovered a bug. Bit like winning the > Loser's Lottery. Always my code...... > > > Julian > Yep, You'll have have to declare those variables global, such as $GLOBALS["var_name"] Jason Bryner -- Focus Design http://www.focusdesigngroup.com

« previous php.general (#6561) next »