Forum Moderators: coopster
what shud be the permission of the file as if i write php -q /home/mysite/public_html/news/send.php in crontab if gives a permission not allowed
Basically it is a php code with <?php ... ?> which needs to be run after every hour
If the file that sends the email is send.php, what would the perms of send.php have to be so it's not accessible via browser. Would it be chmodded to 600 ?
I realize that you can do other checks to make sure this doesn't happen, but just curious.
Also - would it be possible to put the send.php file out of a web accessible directory? OR would that defeat the purpose?
This is what I would do if you are never going to need to access the script directly. Command line scripts should be kept out of the web root.
It should.