![]() |
HOw put php in html?
what write in .htaccess so can put php in html ?
|
Code:
AddType application/x-httpd-php .html .htm |
I just try, now when go to domain give download box :Oh crap
Quote:
|
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?
|
Doesnt it have something to do with AddHandler?
|
did not know can that, now look better :thumbsup
Quote:
|
Ask your hoster about restrictions for .htaccess - does it works for your account?
|
AddType application/x-httpd-php .php .html
|
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.
|
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