magic2goodil Posted March 12, 2007 Share Posted March 12, 2007 Hey there. I am trying to use chmod in a script to chmod a directory dynamically. I keep getting permissions errors and I know why. I am getting them because when I upload the original folder it's not set to 0777. If I change it to 0777, chmod works, but by default it's not set to 0777. Here is my problem with that: I am making a self-installing application that needs to be able to be unzipped, uploaded by the user, and then have the install ran, and install automatically for them based upon their input for the db and such. My server has script chmoding shut off, so a friend recommended using ftp in the script, which works if u input your server ftp login and such and then public_html or www / the folder. The problem being that you have to manually enter that stuff. Is there a way to automatically detect whether it's www or public_html, etc..?? Also is there a better way of doing this. The basis of this is to install and then delete the install folder, then delete the script from config.php to do the deleting. Can anyone give me some input on this? Link to comment https://forums.phpfreaks.com/topic/42319-chmod-help/ Share on other sites More sharing options...
magic2goodil Posted March 13, 2007 Author Share Posted March 13, 2007 After all the posts i have given trying to help people, you'd think I might get a reply to my posts :-/ Link to comment https://forums.phpfreaks.com/topic/42319-chmod-help/#findComment-205926 Share on other sites More sharing options...
Archadian Posted March 13, 2007 Share Posted March 13, 2007 i thought it was just 777 not 0777 Link to comment https://forums.phpfreaks.com/topic/42319-chmod-help/#findComment-205927 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.