I tried #!/usr/bin/php and #!/usr/bin/php at the top of the script and it
just seems to spit out all of the php code instead of execute it
-----Original Message-----
From: swish-e@sunsite3.berkeley.edu [mailto:swish-e@sunsite3.berkeley.edu]
On Behalf Of David L Norris
Sent: Tuesday, 28 September 2004 5:25 p.m.
To: Multiple recipients of list
Subject: [SWISH-E] Re: using php for prog
On Mon, 2004-09-27 at 21:31 -0700, Bill Moseley wrote:
> php foo.php > output
> swish-e -c config -S prog -i stdin < output
If its on UNIX then one can use something like to make the script
executable.
#!/usr/bin/php -q
-q suppresses HTTP headers. That's probably required regardless of how
the script is run.
--
David Norris
http://www.webaugur.com/dave/
ICQ - 412039
Received on Mon Sep 27 22:35:27 2004