I was woundering, whats the best way of making a cron file only accessible by the server?
I know you could add a .htaccess file etc.., but is there any other ways?

I was woundering, whats the best way of making a cron file only accessible by the server?
I know you could add a .htaccess file etc.., but is there any other ways?
Set it so owner and group can only read, write and exec it.... (Permissions in FTP). If you need the SSH way of chmoding it then ask.
Put it outside of the public_html directory and then put the cron command as php bla.php
I can't remember the options to use.
If you wish to place it in a public directory place "deny from all" in the htaccess.
Want to hide these adverts? Register an account for free!