#19475 [Opn->Fbk]: Problem using include with files on different domain

From: Date: Wed, 18 Sep 2002 14:41:28 +0000
Subject: #19475 [Opn->Fbk]: Problem using include with files on different domain
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19643@lists.php.net to get a copy of this message
ID: 19475 Updated by: wez@php.net Reported By: greg@tidalflow.co.uk -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: WINXP and LINUX PHP Version: 4.2.3 New Comment: And you have allow_url_fopen=on in your php.ini and/or apache configuration? Previous Comments: ------------------------------------------------------------------------ [2002-09-18 09:39:02] greg@tidalflow.co.uk Sorry I should have been more clear, I tested this on Win XP and then tested also on both of my live linux servers, the problem is consistent on all versions... ------------------------------------------------------------------------ [2002-09-18 09:32:25] wez@php.net Read the docs at: http://www.php.net/include There is a note that says: The Windows version of PHP currently does not support accessing remote files via this function, even if allow_url_fopen is enabled. I can't see any reason why we don't allow it under win32, but that's the way it is. ------------------------------------------------------------------------ [2002-09-18 09:01:17] greg@tidalflow.co.uk Basically... i am writing a php script that includes a file from a remote server. the initial script on 'www.domain1.com' includes a file from 'www.domain2.com'... include("http://www.domain2.com/inculudeTest.php"); this second script would include <?php echo("TEST"); ?> Expected Result; test Actual Result; Warning: Failed opening 'http://www.domain2.com/includeTest.php' for inclusion in /blah/cust/4/355/outside/www.domain1.com/testFile.php on line 1 Basically it would appear the inclusion of remote scripts now fails... ------------------------------------------------------------------------ [2002-09-18 08:31:53] derick@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-09-18 08:28:51] greg@tidalflow.co.uk It would appear the files can no longer be included from remote servers (i.e. outside of the domain of the file requesting the include)...? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19475&edit=1

« previous php.bugs (#19643) next »