GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   HOw put php in html? (https://gfy.com/showthread.php?t=818453)

Wang Dong 03-29-2008 10:57 AM

HOw put php in html?
 
what write in .htaccess so can put php in html ?

Iron Fist 03-29-2008 11:04 AM

Code:

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

Wang Dong 03-29-2008 11:11 AM

I just try, now when go to domain give download box :Oh crap

Quote:

Originally Posted by sharphead (Post 13994266)
Code:

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


Iron Fist 03-29-2008 11:13 AM

Then you've got some other restriction on your virtual account.. talk to your hosting support. Why don't you just rename the file to .php instead? Wouldn't that be a hell of alot easier?

minddust 03-29-2008 11:15 AM

Doesnt it have something to do with AddHandler?

Wang Dong 03-29-2008 11:28 AM

did not know can that, now look better :thumbsup

Quote:

Originally Posted by sharphead (Post 13994293)
Then you've got some other restriction on your virtual account.. talk to your hosting support. Why don't you just rename the file to .php instead? Wouldn't that be a hell of alot easier?


maggie2007 03-29-2008 12:05 PM

Ask your hoster about restrictions for .htaccess - does it works for your account?

GrouchyAdmin 03-29-2008 02:22 PM

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

brandonstills 03-29-2008 03:41 PM

Ideally it should be in your httpd.conf for apache but .htaccess might work as well if you don't have access to modify httpd.conf.

Tempest 03-29-2008 05:35 PM

This is exactly what I use in my .htaccess for one of my virtual accounts and it works perfectly..

AddHandler application/x-httpd-php .html


All times are GMT -7. The time now is 09:07 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123