note 38644 added to function.include

From: Date: Wed, 31 Dec 2003 17:35:04 +0000
Subject: note 38644 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-62729@lists.php.net to get a copy of this message
Hey everyone, here's a tip for anyone who gets the error: Warning: main(): stream does not support seeking in [blah] This only pops up when using include on remote files in certain circumstances, it may not be a problem to you, but it has popped up twice now with customers of ours. The easiest way to make this go away if the document is included but throws this error for no reason is to put the @ in front of @include to supress this errors. This is a hack and no one likes to do this. Instead, here is some useful info on the subject: Discussion on phpbuilder: http://www.phpbuilder.com/board/showthread.php?threadid=10242027 PHP Official bug (not resolved as of this post): http://bugs.php.net/bug.php?id=24053 here's the solution that I came up with: eval(implode('',file('http://www.site.com/page.php'))); or... if you DON'T need to parse the code (I think you do): echo implode('',file('http://www.site.com/page.php')); This seems to only effect people who are using the Zend Optimizer, but I can't be certain. - Stephen VanDyke ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38644 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38644&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38644&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62729) next »