Re: Crontabs
| From: | 1LT John W. Holmes | Date: | Tue, 18 Jun 2002 22:03:39 +0000 |
| Subject: | Re: Crontabs | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102811@lists.php.net to get a copy of this message | ||
Like someone else said, this applies if PHP is compiled as a cgi and you can
run it from the command line.
If it's a module, you have to load up your page through a web browser to run
it. So for your command, you can use
lynx --dump http://www.domain.com/whatever.php
providing you have lynx installed. You can use wget, too. Your script
shouldn't produce any output unless you send it to a file or somewhere.
---John Holmes...
----- Original Message -----
From: "Analysis & Solutions" <danielc@analysisandsolutions.com>
To: "PHP List" <php-general@lists.php.net>
Sent: Tuesday, June 18, 2002 4:09 PM
Subject: Re: [PHP] Crontabs
> On Tue, Jun 18, 2002 at 08:55:54PM +0100, Matthew Ward wrote:
> > What do you mean by "appropriate #! at the top"?
>
> When you write a script that you want to be executable, you put in the
> pound bang at the top, telling the operating system which program to use
> to run the script. So, for example, a php script could start something
> like:
>
> #! /usr/local/bin/php
> <?php
> ....
>
> Or a perl script could open up with
> #! /usr/local/bin/perl
>
>
> These lines need to be set to the actual path/file name used on the system
> it'll be executed on.
>
> Enjoy,
>
> --Dan
>
> --
> PHP classes that make web design easier
> SQL Solution | Layout Solution | Form Solution
> sqlsolution.info | layoutsolution.info | formsolution.info
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>