![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Server Side Languages Error ! Post here with questions about PHP, perl/cgi, ASP, etc. |
![]() |
|
PHP troubles
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Moderator
Posts: 14
Join Date: Feb 2007
Rep Power: 0
IM:
|
The problem is that i keep getting a permission error when i try to use php to upload an image to my server. i use php to upload the image and then send the name of the image to a mysql database. the error says that i dont have proper permission to access the folder although the folder is present on the server. i temporarily fixed the problem buy using php to create the folder that i needed on the server. but this poses some issues because at later time when i need to delete these images i would have to create some type of php script to do so. i was wondering if anyone else had this same problem and how did they really fix it. Im guessing buy using the same "User" that php uses, im guessing No one or Nobody or something like that, i might be able to edit these files via ftp. its more of a hassle rather than a problem Last edited by nubhost; 01-Feb-2007 at 07:57 AM. Reason: mispelling |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Administrator
Posts: 289
Join Date: Jan 2006
Rep Power: 10
IM:
|
if it is your own server, you could configure php to let it run on another user, root for example, but be warned, it is not recommendend to run php on root, because if there's any bug in your PHP code, someone might have full control over your server !!! best way is to set the rights of the folder where you want the images to 777. now PHP will have access to it, but only to that folder. ------------------ 2oo7 |
|
|
|
|
|
#3 (permalink) |
|
Moderator
Posts: 14
Join Date: Feb 2007
Rep Power: 0
IM:
|
|
|
|
|
|
|
#5 (permalink) |
|
Fix my Error!
Posts: 1
Join Date: Jul 2008
Rep Power: 0
IM:
|
so first change the chmod to 777 then upload... Web Design Company | Asp.Net Programmers | web designers Delhi |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|