Hello!
I found weird problem with Apache+Php5.3 in Debian Squeeze. I'm trying
to include a file from remote server but seems that include breaks running script.
Simple test.php:
<?php
echo "TEST1";
include("http://myserver.com/filetobeincluded.php");
echo "TEST2";
?>
When you try to run test.php from browser, you'll get ONLY
a word "TEST1" and script breaks on include. If you try to include
a file locally, that works.
I have allow_url_include = On and everything okay in php.ini.
Seems that this is problem happens ONLY in Squeeze. I ran that same script in
Fedora 14 and that works without problems on our current production environment which is running on Debian Lenny.
Version info from log: Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze1 with Suhosin-Patch configured
I tested this with 2 different fresh Squeeze installations with same results.
Anyone have any suggestions about this?