I have a problem with an URL-include, which I don't understand...: For testing I have coded the following script:
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 1);
echo "First text";
include("http://www.xxxxxxxxxx.de/includetest.php");
echo "Second text";
?>
Allow_url_include is set to on. (via php.ini)
Allor_url_fopen ist set to on. (via php.ini)
The includetest.php only contains plain text for testing. There is no php-code.
The result of that script is only the "first text". After that the script is stopped.
If I use "or die('not working');" after the include, the result is the whole text (also the second text) with the following warning:
Warning: include(1): failed to open stream: No such file or directory in /srv2/www/htdocs/xhtml-test/_baustelle/testphp02.php on line 6 Warning: include(): Failed opening '1' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /srv2/www/htdocs/xhtml-test/_baustelle/testphp02.php on line 6
Why is that? I am at a loss...