You are here: Re: php as cgi « PHP Programming Language « IT news, forums, messages
Re: php as cgi

Posted by Erwin Moller on 01/31/06 14:04

Captain Dondo wrote:

> I am trying to use php 4.4.2 as a cgi scripting language. I am running
> a self-built linux distribution, with php 4.4.2 compiled from source.
> I am using the busybox web server, which doesn't have the ability to
> incorporate php as a module.
>
> The problem I am having is that php is insistent about sending
>
> X-Powered-By: PHP/4.4.2

Check php.ini. Search for
expose_php = On

> Content-type: text/html

Look in php.ini
Search for
default_mimetype = "text/html"


>
> at the start instead of
>
> HTTP/1.0 200 OK
> Content-type: text/plain
>
> Any way I can get php to quit doing what it's doing and do what I think
> it should be doing?

Yep. :-)
Change php.ini

You can also use ini_set() to overrule php.ini per script basis.

Regards,
Erwin Moller

>
> TIA,
>
> --Yan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация