Jump to content

CHMOD Help


magic2goodil

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.