Re: [Fwd: Re: [PHP] Some error in file upload.]

2002-11-23 Thread Marco Tabini
Naif, I think your problem is related to register_globals. The authors of the book probably based their scripts on a version of PHP that had that option turned on by default, but as 4.2.0, it's been turned off as it is usually considered a security risk. So, either use the superglobal arrays (like

[Fwd: Re: [PHP] Some error in file upload.]

2002-11-23 Thread Marco Tabini
-Forwarded Message- > From: Marco Tabini <[EMAIL PROTECTED]> > To: Naif Al-Otaibi <[EMAIL PROTECTED]> > Subject: Re: [PHP] Some error in file upload. > Date: 23 Nov 2002 07:56:06 -0500 > > I think this needs changing: > > error-> if(isset(!$WINDIR) && !@unlink($userfile)) > > into > >