#19475 [Opn->Bgs]: Problem using include with files on different domain
| From: | wez@php.net | Date: | Wed, 18 Sep 2002 14:49:47 +0000 |
| Subject: | #19475 [Opn->Bgs]: Problem using include with files on different domain | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19646@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: Bogus
Bug Type: *General Issues
Operating System: WINXP and LINUX
PHP Version: 4.2.3
New Comment:
If you are accessing a URL, you need to ensure that the URL is a valid
URL :-)
User Error -> Bogus.
Previous Comments:
------------------------------------------------------------------------
[2002-09-18 09:46:17] greg@tidalflow.co.uk
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?
------------------------------------------------------------------------
[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...
------------------------------------------------------------------------
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