ID:               45153
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jsantana at csulb dot edu
-Status:           Open
+Status:           Bogus
 Bug Type:         CGI related
 Operating System: Solaris 10 x86
 PHP Version:      5.2.6
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

You need to use php-cgi, php is the CLI interface.


Previous Comments:
------------------------------------------------------------------------

[2008-06-02 21:31:20] jsantana at csulb dot edu

Description:
------------
I've compiled PHP as a CGI and call all my scripts through suexec
(Apache 2.x).  I'm noticing that all versions of PHP above 5.2.2 display
the phpinfo(); command in all text in any web browser.  Version 5.2.2
and below all display the webpage the same way it is displayed when
running PHP as an Apache module.  Why is this and how do I get both PHP
module version and PHP CGI version to display the same way?

Ex.  
Working PHP 5.2.2:  http://gaggle.its.csulb.edu/~jsantana/phptest.php
Non-Working PHP 5.2.6: 
http://eagles.its.csulb.edu/~jsantana/phptest.php

Reproduce code:
---------------
#!/usr/local/php5/bin/php

<html>
<head><title>PHP Test</title></head>
<body>
   <p>If nothing follows this paragraph, PHP is not enabled.</p>
   <?php phpinfo() ?>

</body>
</html>


Expected result:
----------------
The same output I would see when I run PHP as an Apache module



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45153&edit=1

Reply via email to