Author: Dan
Date: 07-02-08 19:38
If you see php code when viewing a .php file, you have not told Apache to process those files through PHP. I added these entries to httpd.conf:
#
# And for PHP 5.x, use:
#
<IfModule mod_php5.c>
AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps
</IfModule>
I also do this:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
<IfModule mod_php5.c>
DirectoryIndex index.php index.php3 index.html
</IfModule>
</IfModule>
--
Webmaster
|
|