Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   turning on php parsing with .htaccess (http://www.greenguysboard.com/board/showthread.php?t=11868)

Klove 2004-10-06 10:29 AM

turning on php parsing with .htaccess
 
Been searching the web to do this, but seems I cant find the write code, or whatever.

Damn SSI why cant they work! ;P

If anyone can help it would be appreciated.

Cleo 2004-10-06 10:36 AM

There has been some threads on this. Have you tried using the board's search?

Klove 2004-10-06 10:46 AM

Cleo, I checked for php parsing before I searched, all I found was two threads, this one, and some idiot who got his domains banned.

Cleo 2004-10-06 11:03 AM

http://www.greenguysboard.com/board/...p+and+includes

Quote:

ChristyB,

heres a great little trick that will save your life. Put the following line of code in your .htaccess file

AddType application/x-httpd-php .html .htm

after this the server will parce the php code in your html pages

will work on all servers using apache. if it doesn't work talk to your admin.

to test it just put this line of code in your html file as it



it will give you your server info if the .htaccess is correct



__________________
{fusion}

mikeyddddd 2004-10-07 10:15 AM

I had to put that after allowing .htm & .html to be parsed like this:

AddType text/x-server-parsed-html .html
AddType text/x-server-parsed-html .htm
AddType application/x-httpd-php .html .htm

Great tip! Thanks, Cleo.


All times are GMT -4. The time now is 12:45 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc