You are here: PHP as CGI script in CGI-BIN? « PHP Programming Language « IT news, forums, messages
PHP as CGI script in CGI-BIN?

Posted by Keith on 09/21/05 18:24

All:
I am having problems trying to run some php scripts in cgi. I have Apache 2.0+ and PHP 4.3. Perl works fine
with CGI and PHP works find as an Apache module. Whenever I attempt to run the php script through a URL with the
cgi-bin, it asks if I want to open or download the file. Cgi files execute fine though. Can anyone think of anything I
might be missing in any of the conf files?
Included is an example of one of my php scripts. Thank you for any advice.

#!/usr/bin/php -q

<?php phpinfo(); ?>

 

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

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