Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.