robmiller said:There isn't an existing function to do this simply because there is no way to get it working on all server set-ups. In short, most people run CGI scripts as the user "nobody" or "apache" or somesuch, a user which (for security reasons) rarely has access to anything except the files within the web directory. As such, modifying crontabs - which are well outside the web directory - is impossible.
If you run as your own user you might have a little more luck, but I wouldn't guarantee anything.
I read about that, so I set the CHMOD permissions using FTP. It seems to work on all 3 servers i've been testing on.Beansprout said:Make sure you have a failsafe for the chmod because as robmiller said on some setups the webserver doesn't run as the actual owner of the files, so you'll have some problems there (or potential insecurities in forcing the user to chown the files to the webserver user)![]()
Oooh clever, SMF does that tootoastyman said:I read about that, so I set the CHMOD permissions using FTP. It seems to work on all 3 servers i've been testing on.