Vince Vielhaber wrote:
> 
> On Sat, 10 Feb 2001, Chris Johnson wrote:
> 
> > On Sun, Feb 11, 2001 at 04:57:14AM +0100, Halfdan Mouritzen wrote:
> > > In the .qmail-robot file I've written
> > >
> > > |usr/hotel/topdog/WWW/temp/qmailtest.php
> >
> > Can you just go piping things into a php script and expect your PHP interpreter
> > to spring into action to interpret the script for you? Isn't there supposed to
> > be a web server involved somewhere? (Maybe you can do this, but it would come
> > as a surprise to me.) What happens if you pipe the data into the script
> > directly, without involving qmail?

Since PHP is built as an Apache module I recon that it gets
invoked even when I call the script from commend line.
(I can do it anyway)

> 
> You can build PHP for command line use, but even from the command line
> the first thing it does is prints some html headers.  I never found a
> way to shut that off, but I also didn't try that hard.  I guess you can
> grep them out but the end result is why bother?
> 
The first line of the file reads
# !/usr/local/bin/php -q

This ofcourse tells the server where to find the PHP
interpreter and the '-q' tells it to shut up, 
that it shouldn't output anything to stdout.

Anyway a PHP doesn't output anything if you don't use any
output functions (echo, print, header functions)

// Halfdan


> Vince.
> --
> ==========================================================================
> Vince Vielhaber -- KA8CSH    email: [EMAIL PROTECTED]    http://www.pop4.net
>  128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking
>         Online Campground Directory    http://www.camping-usa.com
>        Online Giftshop Superstore    http://www.cloudninegifts.com
> ==========================================================================

Reply via email to