Behavior of PHP module vs. PHP cgi

[email protected] (Jesse Santana)
Newsgroups php.install
Message-ID <OFBAAC793E.842AED8B-ON8825745E.00585956-8825745E.0059073D@notesmail.csulb.edu>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.