Behavior of PHP module vs. PHP cgi
| From: | Jesse Santana | Date: | Wed, 04 Jun 2008 16:09:45 +0000 |
| Subject: | Behavior of PHP module vs. PHP cgi | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-18954@lists.php.net to get a copy of this message | ||
Can someone explain to me why this script:
#!/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>
Displays perfectly on a system with PHP installed and running as an Apache
module - see: http://eagles.its.csulb.edu/php/phptest.php.
Yet displays completely differently when run through PHP compiled as a CGI
- see: http://eagles.its.csulb.edu/~jsantana/phptest.php
I've noticed this behavior on all PHP versions since 5.2.3 came out.
Version 5.2.2 displays correctly when compiled as a CGI as shown here:
http://gaggle.its.csulb.edu/~jsantana/phptest.php
Thank you in advance,
Jesse Santana
Project Lead - Enterprise Services Group
Information Technology Services
California State University, Long Beach
1250 Bellflower Blvd.
Long Beach, CA 90840
Office: (562)985-8511
Fax: (562)985-8855