tuirn on the following setting in your php.ini file

register_globals = On

currently it seems to be off in your settings file

hope that helps

regards

Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India

----- Original Message ----- 
From: "Dhaval Desai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 2:10 PM
Subject: [PHP] File Upload stuck in the midst


> Hi!
> 
> I am facing some problems while uploading files..
> I just copied the code from php.net from the section
> "Handling File Uploads".
> 
> My index.php pages has the following code:
> 
> <html>
> <head>
> <title>File Uploads</title>
> 
> </head>
> <body>
> <FORM ENCTYPE="multipart/form-data"
> ACTION="action.php" METHOD=POST>
> <INPUT TYPE="hidden" name="MAX_FILE_SIZE"
> value="2000">
> Send this file: <INPUT NAME="userfile" TYPE="file">
> <INPUT TYPE="submit" VALUE="Send File">
> </FORM>
> 
> 
> </body>
> </html>
> 
> 
> 
> 
> ACtion.php has the following code:
> 
> <?php 
> if (is_uploaded_file($userfile)) {
>     copy($userfile, "(c:\\)");
> } else {
>     echo "Possible file upload attack: filename
> '$userfile'.";
> }
> /* ...or... */
> move_uploaded_file($userfile, "(c:\\)");
> ?>
> 
> 
> I always get the error: message..
> 
> [Possible file upload attack: filename 'none'.]
> 
> 
> Can anybody tell me what could be the possible reason
> for this.
> 
> 
> Thanx a lot!
> Dhaval Desai
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to