FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Questions about cron jobs and permissions

 


Grimboy
How would I go about setting the permissions for a script so that it could only be executed by a cron job but not from a user? I am planning on using a php script via php -q /home/serverpath/script/file.php.
kv
All you need to do is password protect the folder which contains your script. You can do it thru cpanel. If user tries to execute it thru http, it asks for password.
Grimboy
That works, thanks.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.