note 38644 deleted from function.include by nlopess

From: Date: Thu, 01 Jan 2004 16:21:20 +0000
Subject: note 38644 deleted from function.include by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62743@lists.php.net to get a copy of this message
Note Submitter: stephen.vandyke AT natnet DOT com ---- 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

« previous php.notes (#62743) next »