whojstall11 Posted April 3, 2012 Share Posted April 3, 2012 Can anybody help me with some code basically my website was shtml it worked perfectly then i wanted to add some php code to it. NOW the php works but the format of my website has changed and it will no longer accept my shtml. i also already changed every .shtml in my websites folder to php and I already have AddType text/html .shtml AddOutputFilter INCLUDES .shtml in my httpd.conf what do i do next. Quote Link to comment https://forums.phpfreaks.com/topic/260294-php-to-shtml/ Share on other sites More sharing options...
GrooN Posted April 4, 2012 Share Posted April 4, 2012 With apache working as your server client it is not possible to have both PHP and SSI code in a single file, it is either PHP or SSI. But there is always a way to get around limits, and the solution in this situation is that you can include PHP from SSI: <!--#include virtual="executeMe.php" --> But that can easily become messy, and I do not recommend doing it. Choose one solution, and stick with it ^^ Quote Link to comment https://forums.phpfreaks.com/topic/260294-php-to-shtml/#findComment-1334485 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.