|

08-07-2008, 01:45 PM
I would advise you to use my solution as its secure.
If you have some directories or files set to 777 all I need to know is your user name and I can write php scripts on the 000webhost server that can read write etc the said directories and files.
The problem is the public_html is in a group, which is your user name, and the php process another group, 99. Group 99 doesn’t have access permissions on the username group.
The fix: -
Change your public_html folder to 777, and any subfolders needed, to allow a php script to create some directories that you want to move files too etc.
Create and run a script to make some directories. These will belong to the 99 group.
Change the public_html folder back to 755, to protect against other people on the server.
Now the new directories your script created can be used in the future by any other php script you run, e.g. the one calling move_uploaded_file
|