|
|
|
|
![]() ![]() |
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. |
|
|
|
Nov 22 2005, 02:15 PM
Post
#2
|
|
|
Incest is a game the whole family can play. ![]() 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.
|
|
|
|
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 |
|
|
|
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. |
|
|
|
Nov 29 2005, 04:21 PM
Post
#5
|
|
|
Incest is a game the whole family can play. ![]() 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. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th October 2008 - 09:48 PM |