I'm having problems while including php files in my php project. I'm using LAMP to run my php website locally on my ubuntu operating system. Everything works fine if I only try to include local php files, but it gives me problems if I try to include a remote file which is on my online website.
For example, it works if I include this file:
<?php include "base.php"; ?>
but if I upload this same file on my remote website and then I try to include it locally, it don't work:
<?php include "http://www.mywebsite.com/base.php"; ?>
The remote file has 755 permissions. Is there any restriction on LAMP configuration which deny remote file inclusion? This is very strange for me! :( I hope you can help me!