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

From: Date: Wed, 18 Sep 2002 14:46:17 +0000
Subject: #19475 [Fbk->Opn]: Problem using include with files on different domain
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19645@lists.php.net to get a copy of this message
ID: 19475 User updated by: greg@tidalflow.co.uk Reported By: greg@tidalflow.co.uk -Status: Feedback +Status: Open Bug Type: *General Issues Operating System: WINXP and LINUX PHP Version: 4.2.3 New Comment: ahhh i am sending get variables as well... if i url encode them it seems to work ok... why would non url encoded variables work locally but not remotely, is it the way the wrappers work? Previous Comments: ------------------------------------------------------------------------ [2002-09-18 09:41:28] wez@php.net And you have allow_url_fopen=on in your php.ini and/or apache configuration? ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19475 -- Edit this bug report at http://bugs.php.net/?id=19475&edit=1

« previous php.bugs (#19645) next »