I am using PHP 5.5.9 with Apache 2.4.7 on my PC running Ubuntu 14.04. I am trying to include a PHP script located in another web server just for some testing purposes. But I cannot seem to be able to turn allow_url_include on. I tried this:
<?php
echo(ini_get("allow_url_include") . "<br />");
ini_set("allow_url_include", "On");
echo(ini_get("allow_url_include"));
?>
And it gives me this output:
0
0
I even tried this by editing the actual /etc/php5/apache2/php.ini file and set allow_url_include = Off, but still, it's the same.
How do I do it?
/etc/init.d/apache2 restart. Apache restarted, but allow_url_include still seems to be unchangeable.allow_url_fopen = On