Syke Posted January 22, 2009 Share Posted January 22, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/141972-help-with-image-upload-script/ Share on other sites More sharing options...
premiso Posted January 22, 2009 Share Posted January 22, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/141972-help-with-image-upload-script/#findComment-743393 Share on other sites More sharing options...
Syke Posted January 23, 2009 Author Share Posted January 23, 2009 Okay, i'll make sure permissions are set. so "Also, $HTTP_POST_VARS...etc is depreciated, use $_POST or in this case $_FILES instead." Means make it $HTTP_FILES_VARS? Quote Link to comment https://forums.phpfreaks.com/topic/141972-help-with-image-upload-script/#findComment-743839 Share on other sites More sharing options...
premiso Posted January 23, 2009 Share Posted January 23, 2009 Okay, i'll make sure permissions are set. so "Also, $HTTP_POST_VARS...etc is depreciated, use $_POST or in this case $_FILES instead." Means make it $HTTP_FILES_VARS? $HTTP_FILES_VARS should be $_FILES. Quote Link to comment https://forums.phpfreaks.com/topic/141972-help-with-image-upload-script/#findComment-743842 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.