Jesse Santana
2008-06-04 16:09:45 UTC
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
#!/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