ID: 24053 Comment by: webmaster at nowproduction dot com Reported By: jphey at netdoor dot com Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux 2.4.20 PHP Version: 4.3.2 New Comment:
I had the same error "Warning: main(): stream does not support seeking...". You can include remote files with adding an '@'. This code should work: <?php @include('http://remoteurl.com/somefile.html'); ?> Previous Comments: ------------------------------------------------------------------------ [2004-01-17 18:20:22] [EMAIL PROTECTED] Not PHP but Zend Optimizer bug -> bogus. ------------------------------------------------------------------------ [2004-01-17 05:43:57] [EMAIL PROTECTED] If it only happens when you have Zend Optimizer loaded, it's a Zend Optimizer bug. URL includes under windows are handled slightly differently internally (due to flex/ bison issues when working on sockets), which would explain why you don't have the problem there. ------------------------------------------------------------------------ [2004-01-17 03:26:54] choinet at rocketmail dot com The other hosts that worked fine did not have the Zend Optimizer, just to clarify. ------------------------------------------------------------------------ [2004-01-16 04:15:51] choinet at rocketmail dot com To the two comments asking about using variables defined in the remote file, one must realize that the external file is parsed and the html output is only returned for inclusion. Also, the above comment does not directly deal with external url inclusions generating a warning, unless Zend Optimizer causes the same warning as such. I am experiencing the same problem on a PHP 4.3.4/Linux/Apache 1.3.29 server. The odd thing is that this problem does not occur on my Windows testbed or three other Linux/PHP 4.3.4 hosts. ------------------------------------------------------------------------ [2004-01-04 11:21:44] the_sandking at hotmail dot com Indeed, Zend optimizer is newly installed and I am having the same problem including a local file.. include('../../dir/filename.php'); This complains via the browser about "failed to open stream: No such file or directory" But in fact inclues the file in question... ------------------------------------------------------------------------ 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/24053 -- Edit this bug report at http://bugs.php.net/?id=24053&edit=1