Remember me
Login
Register
Username
Password
I forgot my password
Login
Register
Skip to content
Board index
Sonic
Hosting
Search
Embed php code in html file
Web hosting discussion, programming, and shared and dedicated servers.
2 posts
Page
1
of
1
Post a reply
Search
Embed php code in html file
by
not logged in
» Wed Nov 19, 2014 9:17 am
Quote
Is it possible to run php code within .html files on Sonic.net?
not logged in
by
thulsa_doom
» Thu Nov 20, 2014 9:38 am
Quote
Sounds like a job for .htaccess!
Code:
Select all
AddHandler php-script .html
Basically you create a file named ".htaccess" containing the above text followed by an empty line. Put it in the directory where you want our server to treat .html files as PHP scripts.
thulsa_doom
Posts:
500
Joined:
Sun Jun 12, 2011 1:35 pm
Website:
http://sonic.net/support/
Location:
Sonic Earth HQ
John Fitzgerald
Sonic Technical Support
Post a reply
Print view
Search
2 posts
Page
1
of
1
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Return to “Hosting”
Jump to:
Select a forum
------------------
Sonic
Access
Voice
TV
Hosting
General
Labs