> I run my PHP crons like this:
> 0 6 * * * /usr/local/bin/lynx -source "http://www.domain.com/file.php"
> This is not the most secure of course, as the file is below the root
> and could be hit by any user.  But works for my particular case ...
> Anyone know of a method to make this more secure ... password
> protecting the directory it's in?  chnaging the permissions of the
> file???

if that's how you do it what about putting a .htaccess file in the web
directory with the PHP script in it restricting access to only your
webserver, that way the script would run from the cron, but no-one else
could access the script.


     Studio 24 Ltd   |   tel. 01223 501 892
  30 Hopkins Close   |   fax. 0870 063 1216
         Cambridge   |   mob. 07974 074 547
           CB4 1FD   |   www.studio24.net

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to