do you mean ALL pages, or pages with .php, or how to build php as an apache module?
I know you can set apache to parse all html as php, but I don't know how, could someone let me know?
If anyone has done this I'd also like to know how much of a difference it makes, with the increased overhead of doing this.
ta.
do you mean ALL pages, or pages with .php, or how to build php as an apache module?
If you want your .html files to be parsed by php, look into httpd.conf (/etc/apache/httpd.conf for me) and look for
change it toCode:AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
Code:AddType application/x-httpd-php .php .html AddType application/x-httpd-php-source .phps
leo.
I wouldn't change the first into the second, I'd just add the second in right after the first. That way you can still use a .php file, if you want.change it toCode:AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
Code:AddType application/x-httpd-php .php .html AddType application/x-httpd-php-source .phps
Right I'll try this tomorrow, thanks. I don't need it any more*, but I'll give it a go.
Was doing a tutorial, dicked about with the code, got it working, Thanks anyway guys
Hey popcorn, let me know how that goes. That would be fairly handy.
Works like a charm. Thanks elo.
Just as a note to anyone else wanting to try this, I had to edit commonhttpd.conf not httpd.conf, so check for both.
Fetzaa: with that code you can still use .php (It's still on the AddType line)
Bookmarks