Jump to content

Help with image upload script.


Syke

Recommended Posts

I'm getting this error message:

 

Warning: copy(./images/uploaded16832415pltoy.jpg) [function.copy]: failed to open stream: Permission denied in /home2/ezypicne/public_html/upload.php on line 17

Upload Failed, Please Try Again.

 

Line 17 etc is:

 

$res = copy($HTTP_POST_FILES['userfile']['tmp_name'], "./".$path .$fupl .$HTTP_POST_FILES['userfile']['name']);

 

So what on earth do I do now?

 

Thanks in advance

 

Link to comment
https://forums.phpfreaks.com/topic/141972-help-with-image-upload-script/
Share on other sites

The directory where you are to copy the image to make sure it has read/write permissions. It sounds like that doesn't.

 

Also, $HTTP_POST_VARS...etc  is depreciated, use $_POST or in this case $_FILES instead.

 

 

If you want someone to help you dig a hole, you do not give them a spoon.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.