jp3 Posted December 17, 2014 Share Posted December 17, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/293148-allowing-php-include/ Share on other sites More sharing options...
requinix Posted December 17, 2014 Share Posted December 17, 2014 ...That error message comes from Outlook. What are you doing with this code? Quote Link to comment https://forums.phpfreaks.com/topic/293148-allowing-php-include/#findComment-1499890 Share on other sites More sharing options...
jp3 Posted December 17, 2014 Author Share Posted December 17, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/293148-allowing-php-include/#findComment-1499891 Share on other sites More sharing options...
requinix Posted December 17, 2014 Share Posted December 17, 2014 If you say so... What matters is the HTML source of the page. What is it? Quote Link to comment https://forums.phpfreaks.com/topic/293148-allowing-php-include/#findComment-1499895 Share on other sites More sharing options...
jp3 Posted December 17, 2014 Author Share Posted December 17, 2014 Thanks for pointing me in the right direction. I made an embarrassingly stupid screwup. Quote Link to comment https://forums.phpfreaks.com/topic/293148-allowing-php-include/#findComment-1499897 Share on other sites More sharing options...
kpmedia Posted December 20, 2014 Share Posted December 20, 2014 (edited) Depending on the source server, something like this can be caused by security programs like mod_security. So keep that in mind. Glad you figured it out. (We all do stupid things! ) Edited December 20, 2014 by kpmedia Quote Link to comment https://forums.phpfreaks.com/topic/293148-allowing-php-include/#findComment-1500204 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.