Jump to content

allowing php include


Recommended Posts

I've set up a staging server with Ubuntu 14.04, Apache, PHP, and MySQL, and I'm having a configuration issue that I need to resolve.

 

index.html uses a server side include.  I was required to change the shtml file it references to a php file, but it's not working properly.

 

When my webpage uses the code:

<?php include ("footer.shtml"); ?>

then the page loads correctly

 

However, when I change it to:

<?php include ("footer.php"); ?>

then I instead see a message stating,

"This attachment was removed because it contains data that could pose a security risk."

 

I can't determine which configuration file I need to change, and what the change needs to be.

Link to comment
https://forums.phpfreaks.com/topic/293148-allowing-php-include/
Share on other sites

It's not coming from Outlook; I'm using Firefox on Ubuntu (the same machine).

 

The code in footer.php creates text that goes in the cell of a table in index.html.  Originally this was done using shtml files, but I was given php files that I was told to use instead for security reasons.  I am under the impression that all I have to do is make the changes described in my original post, but it's not working.

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.