Tom_K Posted August 14, 2010 Posted August 14, 2010 Hi and thanx for this great and free service that you provide! The problem that i have is that i can't see the embedded php in my html documents. It seems that the parser won't work. I already have added "AddHandler x-httpd-php .html .htm" at the end of my .htaccess file (I checked it at cpanel too). I made two files: testt.php <?php echo "I LOVE PHP!"; ?> testt.html <html> <head></head> <body> <h1> <?php echo "I LOVE PHP!"; ?> </h1> </body> </html> The first file I can view it in my browser but when I open the second one I see a blank page. You can check it by yourself: http://ntominator.heliohost.org/testt.php http://ntominator.heliohost.org/testt.html Username: tomk Domain name: ntominator.heliohost.org PS: Sorry for my english but it's not my native language!
Byron Posted August 14, 2010 Posted August 14, 2010 I already have added "AddHandler x-httpd-php .html .htm" at the end of my .htaccess file (I checked it at cpanel too). Use this instead: AddHandler application/x-httpd-php5 .html .htm Notice the number 5 at the end?
Tom_K Posted August 15, 2010 Author Posted August 15, 2010 OK, now it works like a charm! Thanx a lot byron!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now