PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
What is with this, the damn thing won't work. Just UPLOAD @#$!
Warning: SAFE MODE Restriction in effect. The script whose uid is 549 is not allowed to access /var/www/html/images owned by uid 0 in /home/virtual/site47/fst/var/www/html/modify/imageuploader.php on line 23
upload failed!
But since uid 0 is root one might assume you can change php.ini-settings http://www.php.net/manual/en/features.s ... .safe-mode
If you want to stay with safe mode (or must) make the account with uid 549 the owner of that directory.
I hope php's safe-mode is something that will happen only to other people
Although security is something one should care about, safe-mode is a pain in the ass and did me more harm than good.
If the admin is concerned about security he/she/it might be interested in the new "perchild" mpm-module introduced with apache 2. It's still experimental
This MPM does not currently work on most platforms. Work is ongoing to make it functional.
but once it is working (and stable for production systems) I'm sure it will help admins keeping their hair and getting healthy amounts of sleep each day
I -for sure- will mark the day the experimental-note is removed with reason
Ok, I have rid my server of safe-mode. However, I am now getting an error message, which I think is in relation to my code.
Warning: Unable to create '../images/used/car.jpg': Permission denied in /home/virtual/site47/fst/var/www/html/modify/imageuploader.php on line 22
upload failed!
Permission denied - what is with that?
Last edited by skylavelle on Wed May 07, 2003 1:29 am, edited 1 time in total.
i should rephrase. whatever uid/gid the php script is run as, doesn't have write permissions to the directory. your ftp account presumably has different privledges.
Firstly, is there such a script for connecting to sites or is it not necessary?
So how do I change the uid/gid which the php script is run as, in order for it to have the same privileges as the ftp account, thus having write permission?