Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-29-2008, 10:57 AM   #1
Wang Dong
Guest
 
Posts: n/a
HOw put php in html?

what write in .htaccess so can put php in html ?
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2008, 11:04 AM   #2
Iron Fist
Too lazy to set a custom title
 
Join Date: Dec 2006
Posts: 23,400
Code:
AddType application/x-httpd-php .html .htm
__________________
i like waffles
Iron Fist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2008, 11:11 AM   #3
Wang Dong
Guest
 
Posts: n/a
I just try, now when go to domain give download box

Quote:
Originally Posted by sharphead View Post
Code:
AddType application/x-httpd-php .html .htm
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2008, 11:13 AM   #4
Iron Fist
Too lazy to set a custom title
 
Join Date: Dec 2006
Posts: 23,400
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?
__________________
i like waffles

Last edited by Iron Fist; 03-29-2008 at 11:14 AM..
Iron Fist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2008, 11:15 AM   #5
minddust
Confirmed User
 
Join Date: Feb 2005
Posts: 2,438
Doesnt it have something to do with AddHandler?
minddust is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2008, 11:28 AM   #6
Wang Dong
Guest
 
Posts: n/a
did not know can that, now look better

Quote:
Originally Posted by sharphead View Post
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?
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2008, 12:05 PM   #7
maggie2007
Confirmed User
 
Industry Role:
Join Date: Jan 2007
Posts: 247
Ask your hoster about restrictions for .htaccess - does it works for your account?
maggie2007 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2008, 02:22 PM   #8
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
AddType application/x-httpd-php .php .html
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2008, 03:41 PM   #9
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2008, 05:35 PM   #10
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
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
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.