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.
----- Original Message -----
From: "Analysis & Solutions" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
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
> #! /usr/local/bin/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.
> 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
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php