Brilliant! That fixed the problem. Thanks!
-----Original Message-----
From: Jeremy Chadwick [mailto:cg...@jd...]
Sent: Tuesday, April 01, 2008 2:51 PM
To: Tim Gustafson
Cc: cgi...@li...
Subject: Re: [cgiwrap-users] PHP Problems
That sounds more like you're using the CLI PHP interpreter instead of the
CGI PHP interpreter:
$ echo '<?php echo "hello\n"; ?>' | php
hello
$ echo '<?php echo "hello\n"; ?>' | php-cgi
X-Powered-By: PHP/5.2.3
Content-type: text/html
hello
You can use the -v flag on whatever PHP you pointed cgiwrap to, to find out
what interpreter type you're trying to use.
--
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, USA |
| Making life hard for others since 1977. PGP: 4BD6C0CB |
On Tue, Apr 01, 2008 at 12:06:17PM -0700, Tim Gustafson wrote:
> Hello!
>
> I've got cgiwrap working for my user's web scripts. Everything works
> great for Perl and shell scripts, but it seems that I have to add the
> following to the top of all my PHP scripts to get them to work:
>
> echo "Content-Type: text/html\n";
> echo "\n";
>
> I'd really like to not have to have all my users (there are 1,700 of
> them) modify all their PHP scripts to make this work.
>
> So, my question is: how do I make this work without having them
> rewrite all their scripts?
>
> Thanks for all your help!
>
> Tim
>
>
>
> ----------------------------------------------------------------------
> --- Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for just about anything
> Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marke
> tplace _______________________________________________
> cgiwrap-users mailing list
> cgi...@li...
> https://lists.sourceforge.net/lists/listinfo/cgiwrap-users
|