Re: Re: Executing a php script periodically using crond
| From: | Henry | Date: | Tue, 02 Jul 2002 17:00:32 +0000 |
| Subject: | Re: Re: Executing a php script periodically using crond | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104959@lists.php.net to get a copy of this message | ||
Thanks,
Only one concern. Are there any security issues. And I suppose more
importantly, if there are; is there a way to get the php-script to ensure
that is is being invoked by my cron deamon. Should I put the page in a
directory and use .htaccess to control security. Or can I check the referrer
to ensure that it is not being invoked via a browser!!
I'm going to go down the wget path at the moment. Thanks in advance.
Henry
"Erik Price" <pricee@hhbrown.com> wrote in message
news:6E0EFF69-8DDC-11D6-B565-0050E4857868@hhbrown.com...
>
> On Tuesday, July 2, 2002, at 12:25 PM, Henry wrote:
>
> > PS. I cannot compile as a binary etc. This configuration is the confi
> > of the
> > shared server I am using which is hosted by a third part.
>
> If your PHP is not compiled as a CGI interpreter, then you can't do
> commandline PHP commands. But all is not lost. You can have the cron
> job execute a shell script that executes lynx or links or wget, or even
> just executes the command directly from the cron job, and have that
> lynx/links/wget request a PHP script that does what you want done.
>
>
> Erik
>
>
>
>
> ----
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> pricee@hhbrown.com
>