Behavior of PHP module vs. PHP cgi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




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

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux