dreamwest Posted March 27, 2008 Share Posted March 27, 2008 Is there a way to automatically chmod files on a server by using cron?? Quote Link to comment https://forums.phpfreaks.com/topic/98129-automatically-chmod-files-on-a-server-by-using-cron/ Share on other sites More sharing options...
MadTechie Posted March 27, 2008 Share Posted March 27, 2008 yes, use chmod() in a cron job ?? Quote Link to comment https://forums.phpfreaks.com/topic/98129-automatically-chmod-files-on-a-server-by-using-cron/#findComment-502071 Share on other sites More sharing options...
cooldude832 Posted March 27, 2008 Share Posted March 27, 2008 Is there a way to automatically chmod files on a server by using cron?? Ask yourself why you can't do this on the file's dynamic creation if this is the case. I'd assume php isn't the maker of the file, but if its not odds are you can create a macro/batch so however the file is made (if its your own program) it also rewrites chmod seeing as chmod is a UNIX function not only a PHP function it can be initalized from any source. In fact php doesn't even need to be used to rewrite chmod via CRON you can execute a series of shell commands via CRON to change chmods. Quote Link to comment https://forums.phpfreaks.com/topic/98129-automatically-chmod-files-on-a-server-by-using-cron/#findComment-502074 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.