Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.