Welcome Guest ( Log In | Register)



 
Closed TopicStart new topic
> Error Using "move_uploaded_file()", Permission denied to perform this action
vistal
post Nov 21 2005, 10:01 AM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 17
Joined: 27-October 05
Member No.: 13,434



I, on my website, have employed a page to upload files on my website.
But I'm having problems using it. When the file is uploaded to the 'temp' directory of my account, and when I use the function 'move_uploaded_file()' to move this file into the actual directory, it returns the error

move_uploaded_file(ABD.jpg): failed to open stream: Permission denied
move_uploaded_file(): Unable to move '/tmp/phpF5SqzC' to 'ABD.jpg'

please help me what should now I do with this..

I also tried changing the mode of the 'temp' directory to 755, but it still didn't work. This problem really needs to be fixed. Please sort out this problem or give me an alternative to this function 'move_uploaded_file()'

An additional information regarding this issue is that the same file works with no error (using the same function as mentioned above) on another php supported server. So in my opinion (if i am right) there is a need to set the php configuration file on your TRAP17.com server to allow this function to be used.
Go to the top of the page
 
+Quote Post
electriic ink
post Nov 22 2005, 02:15 PM
Post #2


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,227
Joined: 11-February 05
From: Heaven
Member No.: 3,709



I would try changing the permissions on all the directories in which the file movement involves, the directory where it is being moved from and to, to 0777 permissions.
Go to the top of the page
 
+Quote Post
whyme
post Nov 23 2005, 12:58 AM
Post #3


Privileged Member
*********

Group: Members
Posts: 661
Joined: 10-January 05
Member No.: 3,189



cmatcmextra has stated the problem correctly, "Permission denied" means that your script doen't, and can't have access to your files. Simply go to your cPanel file manager, and change the permissions on both folders to 777.

whyme
Go to the top of the page
 
+Quote Post
vistal
post Nov 29 2005, 04:11 PM
Post #4


Newbie [Level 1]
*

Group: Members
Posts: 17
Joined: 27-October 05
Member No.: 13,434



Thanx!

Now the problem is corrected & files are working correctly.
But I still can't understand why the same script with same coding was working on another server without any warning/error.

Anyways, thanks to both of you.
Go to the top of the page
 
+Quote Post
electriic ink
post Nov 29 2005, 04:21 PM
Post #5


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,227
Joined: 11-February 05
From: Heaven
Member No.: 3,709



QUOTE(vistal)
But I still can't understand why the same script with same coding was working on another server without any warning/error.


Maybe it's the way php had been set-up or something.

Problem answered = topic locked. Any new questions, please start a new topic.
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Blank Images - (white Square W/red X)(8)
  2. 403 Forbidden Error When Accessing My Site(11)
  3. My File Manager Is Working(2)
  4. How Do I Make A (video) File Smaller? (11)
  5. Cannot Delete Folder After Lost Ftp Connection(7)
  6. Error Code In Subscriptions Page(5)
  7. Got A Great Phpbb File With Mods Already Installed?(3)
  8. Email Creation Error(3)
  9. /tmp Folder In File Manager(4)
  10. Keep Getting Socket Error(3)
  11. Css Problem On Website(8)
  12. Parse Error: Syntax Error, Unexpected '<' On Line 29(11)
  13. Has Anyone Ever Seen This Before?(7)
  14. Ftp Problem(8)
  15. Mysqli Error - Phpbb3(3)
  1. I Would Like To Change My Domain Name [resolved](4)
  2. Phpmyadmin Error(4)
  3. Phpmyadmin Error [resolved](7)
  4. Unable To Replace .png File In Directory(7)
  5. Issues Uploading A File [resolved](3)
  6. File Manager Not Working(2)
  7. Coppermine Gallery Error(2)
  8. Page Load Error When Accessing Cpanel(0)
  9. Error 28 (on Phpmyadmin)(10)
  10. Phpbb3 - Error 28(5)
  11. Wordpress Error - Bytes Exausted [resolved](7)
  12. Hosting Problem [resolved](22)
  13. Page Load Error When Trying To Get Into Control Panel(2)


 



- Lo-Fi Version Time is now: 6th October 2008 - 09:48 PM