ID: 22576
Comment by: dave at socrates dot thinkhost dot com
Reported By: mav at alkar dot net
Status: Open
Bug Type: Scripting Engine problem
Operating System: FreeBSD 4.8-RC
PHP Version: 4.3.2-dev
New Comment:
I am having the same problem, my O/S is FreeBSD 4.8-RC as well, and the
PHP versions I am using is 4.3.1. I am running 4.3.2-RC1 on my own box,
same problem seems to exist there:
I setup some example scripts to show what is happening, they are
below:
[file.inc]
<?php
echo "Hello World!";
?>
[test.php]
<?php
include("http://pub.thinkhost.com/file.inc");
?>
When I call test.php, I get this:
Warning: main() [function.main]: stream does not support seeking in
http://pub.thinkhost.com/file.inc on line 0
?php echo "Hello World!\n"; ?>
An error message, and it appears that the first byte of the response
from the web server to fetch file.inv has been nibbled off. Any idea
why?
Previous Comments:
------------------------------------------------------------------------
[2003-03-06 15:44:24] mav at alkar dot net
I do it. Now I have another warning message:
Warning: main() [function.main]: stream does not support seeking in
/www/clients/commerce/darknes/www.spooky.dp.ua/pages/news.html on line
6
news.html is a PHP script here that have include() on a line 6.
------------------------------------------------------------------------
[2003-03-06 15:34:02] [EMAIL PROTECTED]
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
------------------------------------------------------------------------
[2003-03-06 15:30:51] mav at alkar dot net
When I write:
<?php
include "http://www.spooky.dp.ua/test.html";
?>
and that file are not empty I take message:
Warning: main() [function.main]: stream does not support seeking in
http://www.spooky.dp.ua/test.html on line 0
PHP 4.3.1 compiled with options:
./configure \
--prefix=/usr/local \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--enable-memory-limit \
--with-mysql=/usr/local/mysql \
--with-gd=/usr/local \
--enable-trans-sid \
--enable-inline-optimization \
--enable-ftp \
--enable-dbase \
--enable-gd-native-ttf \
--with-ttf \
--with-freetype-dir=/usr/local \
--with-iconv \
--with-ming=/usr/local \
--with-zlib
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22576&edit=1