----- Original Message ----- 
From: "Pat Lashley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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
> <[EMAIL PROTECTED]> 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...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to