Re: Need to Run a PHP script using CRON or ?

From: Date: Mon, 15 Sep 2003 21:26:41 +0000
Subject: Re: Need to Run a PHP script using CRON or ?
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-30518@lists.php.net to get a copy of this message
----- Original Message ----- From: "Pat Lashley" <patl+php@phoenix.volant.org> To: <jvilla@isdesigndev.com>; <php-db@lists.php.net> Sent: Monday, September 15, 2003 5:12 PM Subject: Re: [PHP-DB] Need to Run a PHP script using CRON or ? > --On Monday, September 15, 2003 15:27:45 -0500 Jonathan Villa > <jvilla@isdesigndev.com> wrote: > > > > > Interesting... how does this fair concerning security? So I'll have to > > have this file located in my document root, is this a good thing? My > > current directory structure consists of several files located outside > > the doc root. I guess I could always include it onto a page > > Unfortunately command-line fetch programs seldom provide a clean > method for providing authentication info; so you probably can't > just restrict access to that script based on a userid/password. > (You might be able to do something with SSL and client certificates; > but then you need to either buy a client cert or figure out how to > set up a private certificate authority...) Getting off topic here, but you can specify user and password for wget. So you could protect the file with .htaccess and provide the user/login to wget. The only problem is the user/password will be available when you run "ps". For a way to get around that, see the man page of wget. ---John Holmes...

« previous php.db (#30518) next »