Portal Home > Knowledgebase > Articles Database > php file upload with safe mode on
php file upload with safe mode on
Posted by adoobi, 06-01-2009, 11:10 AM |
hello eveyone...
i am looking for a secure way to upload files using php while safe mode is on , beside i dont want to set folder permission to 777 manully ....
i am using chmod to set folder permission in php but i guess this wont work if safe mode is on ,
any suggestion?
|
Posted by tuxguru, 06-02-2009, 06:45 AM |
If the uploaded files are small, you can try reading data from the temporary file and storing it in database.
|
Posted by HivelocityDD, 06-02-2009, 12:20 PM |
You never need to set permission to 777 755 is enough for file upload.
|
Posted by tuxguru, 06-03-2009, 05:45 AM |
777 may be needed if suphp, php_suexec or similar is not available.
|
Add to Favourites Print this Article
Also Read