Re: source code display
| From: | Ben Ramsey | Date: | Mon, 07 Jun 2004 16:44:07 +0000 |
| Subject: | Re: source code display | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187807@lists.php.net to get a copy of this message | ||
Oh, I also meant to mention this:
Are you sure that Apache is loading in the correct PHP module? The following lines are in my httpd.conf file:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php php
Assuming you're using PHP 3 instead of PHP 4, I guess you would load php3_module with the filename of libphp3.so. Then again, maybe you're just trying to parse .php3 files with PHP 4, so leave it the way you see it above, but you may also want to put the php3 extension on a separate line and see if that helps:
AddType application/x-httpd-php php
AddType application/x-httpd-php php3
AddType application/x-httpd-php php4
And so on...
Ben Ramsey wrote:
JN> Don't know if it matters or not, but all the 'examples' I've seen JN> have the dot before the extension, ie JN> JN> AddType application/x-httpd-php .php .php3 I've never used the dot (.) before the extension in Apache, and all works well.-- Regards, Ben Ramsey http://benramsey.com --------------------------------------------------- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. ---------------------------------------------------