Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-10-06, 10:29 AM   #1
Klove
Well you know boys, a nuclear reactor is a lot like women. You just have to read the manual and press the right button
 
Join Date: Sep 2004
Location: Montreal, Quebec
Posts: 156
Send a message via ICQ to Klove
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.
__________________
Klove
----------------------------
<a href="http://www.smutdaily.net/webmasters/">Submit To SmutDaily.Net</a>
Klove is offline   Reply With Quote
Old 2004-10-06, 10:36 AM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
There has been some threads on this. Have you tried using the board's search?
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-10-06, 10:46 AM   #3
Klove
Well you know boys, a nuclear reactor is a lot like women. You just have to read the manual and press the right button
 
Join Date: Sep 2004
Location: Montreal, Quebec
Posts: 156
Send a message via ICQ to Klove
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.
__________________
Klove
----------------------------
<a href="http://www.smutdaily.net/webmasters/">Submit To SmutDaily.Net</a>
Klove is offline   Reply With Quote
Old 2004-10-06, 11:03 AM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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

<?phpinfo();?>

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



__________________
{fusion}
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-10-07, 10:15 AM   #5
mikeyddddd
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
 
mikeyddddd's Avatar
 
Join Date: Sep 2003
Location: Irving, TX
Posts: 57
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.
__________________
mikey likes it
mikeyddddd is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:47 AM.


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