Hello Oliver,

Thursday, July 25, 2002, 1:23:24 PM, you wrote:

OW> Hi!
OW> I got a problem with uploading pictures. Using a script following this
OW> schema:

OW> if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
OW>     copy($HTTP_POST_FILES['userfile']['tmp_name'],
OW> "/place/to/put/uploaded/file");
OW> } else {
OW>     echo "Possible file upload attack. Filename: " .
OW> $HTTP_POST_FILES['userfile']['name'];

OW>  the script always returns:
OW> Warning: Unable to create '/*.jpg': Permission denied in fotos2.php on
OW> line 62

OW> I do not understand why that happens. Do I need to include a password
OW> somewhere or somehitng like that? Thank you for your help!
OW> Oliver

i think u should set write permissions to directory
where u r trying to copy file

Best regards,
Alexander Kuznetsov
Leading Web-programmer
Centre of engineering technologies CS Trade

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to