benji87 Posted October 11, 2007 Share Posted October 11, 2007 Just a quick and i imagine simple one. How do i embed php into a .html file? Ive used addhandler application/x-httpd-php .htm .html in my .htaccess file. Which from googling seems to be the way to go with this, although i dont seem to get the right results from it? I can echo a simple string of text but i cant include files, as nothing appears? Also im wondering if this was working properly would the server print sql errors onto a .html page?? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/72753-embedding-php/ Share on other sites More sharing options...
MadTechie Posted October 11, 2007 Share Posted October 11, 2007 can you post some code that fails Quote Link to comment https://forums.phpfreaks.com/topic/72753-embedding-php/#findComment-367020 Share on other sites More sharing options...
richardw Posted October 11, 2007 Share Posted October 11, 2007 This is the code that I use in my .htaccess file AddType application/x-httpd-php .php .html Quote Link to comment https://forums.phpfreaks.com/topic/72753-embedding-php/#findComment-367073 Share on other sites More sharing options...
MadTechie Posted October 11, 2007 Share Posted October 11, 2007 and that fails ? I can echo a simple string of text but i cant include files, as nothing appears? can you post that! post a sample include file and the code that calls it.. (one you have tested and you know doesn't work) Quote Link to comment https://forums.phpfreaks.com/topic/72753-embedding-php/#findComment-367075 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.