#22576 [Com]: include() or require() file via HTTP wrapper
ID: 22576
Comment by: unknown at yabbse dot org
Reported By: mav at alkar dot net
Status: Closed
Bug Type: Scripting Engine problem
Operating System: FreeBSD 4.8-RC
PHP Version: 4.3.2-dev
New Comment:
This report is related to bug #24053
(http://bugs.php.net/bug.php?id=24053) which was marked bogus.
(although it is not.)
This has repercussions with functions like getimagesize, which clearly
need to be able to access remote files. Now they spit out a
warning....
-[Unknown]
Previous Comments:
------------------------------------------------------------------------
[2003-06-08 13:00:03] jrpozo at conclase dot net
We are seeing the same with PHP4.3.2, Linux RedHat 7.3, Apache 1.3.27
(PHP as a module).
<?php
include("http://www.example.com/test.txt");
?>
yields this
Warning: main(): stream does not support seeking in
/home/example/public_html/test.php on line 3
and includes the file.
------------------------------------------------------------------------
[2003-06-03 13:11:15] kelv at kelv dot net
Same problem here. Using stable PHP 4.3.2 on Slackware Linux 7.1,
kernel 2.4.20.
<?php include("http://www.some.url.somewhere"); ?>
------------------------------------------------------------------------
[2003-05-07 02:48:44] screwdriver at lxnt dot info
Does not work (i.e. spits warning: stream does not support seeking bla
bla bla) for me on FreeBSD 4.8-RELEASE
Tried:
PHP-4.3.2RC2
php4-STABLE-200305070730
Both spit out warnings like
Warning: main(): stream does not support seeking in
/home/www/htdocs/English/vacancy/job.php on line 2
line 2 being
include("http://blablalbla ...");
------------------------------------------------------------------------
[2003-04-06 06:58:05] sniper@php.net
Works fine with 4.3.2-RC.
------------------------------------------------------------------------
[2003-03-31 16:01:33] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Cannot replicate using latest stable snapshot.
------------------------------------------------------------------------
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/22576
--
Edit this bug report at http://bugs.php.net/?id=22576&edit=1
Thread (10 messages)