Jump to content

PHP to shtml


whojstall11

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/260294-php-to-shtml/
Share on other sites

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 ^^

Link to comment
https://forums.phpfreaks.com/topic/260294-php-to-shtml/#findComment-1334485
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.