Question:
How do I configure my PHP.INI file to allow for the ability of uploads?
Lee S
2008-07-10 11:42:45 UTC
I just recently transfered over my website to a new server, and now I can not use the script that was set to upload photos with out changing the photo directories to a chmod of 777

How do I configure my PHP.INI file to allow for the ability of uploads so that i dont have to chmod my directories to 777


I am currently running 5.2.5
Three answers:
Atif Majid
2008-07-14 08:55:05 UTC
In my openion, you don't have to do anything with php.ini file. You just modify your script. Whenever a file is being uploaded, just change the folder parameter to 775 and then change back to 755. I am sure it will work. Never keep your directories be 777. It is a major security risk. Please read at following to know how you can change folder parameters on the fly.

http://www.php.net/manual/en/function.chmod.php

Regards
anonymous
2016-08-28 18:36:11 UTC
This is an interesting question, and one that made me curious for quite some time.
denna
2016-09-19 03:50:51 UTC
It depends..


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...