[BLU] Re: php from command line?

David Kramer david at kramer.ne.mediaone.net
Fri Sep 8 09:43:13 EDT 2000


On Fri, 8 Sep 2000, Mark Pugcam wrote:

> If you compiled PHP as an apache module - the most common way of doing it
> - then you can always call scripts from the command line like this:
> 
> lynx -dump http://localhost/script.php   (to get the formatted output)
> lynx -source http://localhost/script.php  (to get the raw html output)
> 
> You can redirect the output from the stdout to a file or progam.
> 
> I use the -dump option with some cron jobs to get things done that I used
> to have to do with perl scripts and lots of perl modules. :-)
> 
> Mark Tolman

Sweet!  Thanks.  That works great.

-------------------------------------------------------------------
DDDD   David Kramer                   http://kramer.ne.mediaone.net
DK KD  
DKK D        On a cellular level, I'm actually quite busy!
DK KD  
DDDD

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list