Warning: main(): stream does not support seeking in /pathto/file.php on line XX

Filed under: PHP — jac @ April 2, 2004 - 8:02 am

Apparently VeoWeb.Net1 upgraded PHP. This introduced a bug (feature?) which caused the above warning to be displayed even though the php script appears to work correctly.

Here’s the solution:

The offending line looks something like this:
include($URL) ;

Replacing it with this:
@include($URL) ;

fixes this problem.

  1. Now defunct.

3 Responses to “Warning: main(): stream does not support seeking in /pathto/file.php on line XX”

  1. Alan says:

    Hi, having a similar problem. But, to let you know, the at (@) sign doesn’t fix the problem, @ just simply quiets the warning. So, it’s still there, it’s just not telling you about it anymore. :)

  2. greg says:

    I treid it with the @ and it doesn’t fix the problem! I also tried to change the inclusion from getting a http:// into a local file /http/home/www …
    Nothing helps.
    Still this error on my site :-(

  3. Mitecha says:

    Thanks a ton rlrr, I was freaking out because of those stupid errors… I checked my coding and everything, I wasn’t sure what exactly was going wrong… The whole @ thing works… It may not fix the problem but it does hide the error messages, which is enough to please me.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>




  



March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Statistics

There are currently 42 posts and 25 comments, contained within 13 categories.


Miscellaneous
- Source Files

Add to Technorati Favorites


Storage B
-OpenDDS 2.1.1
-OpenDDS 2.1
-It Proved Just Too Difficult
-Bridge Simulators
-C++0x FAQ
-Skepticism and standards of evidence applied development practices
-OpenDDS 2.0.1
-OpenDDS 2.0
-OpenDDS Version 1.3 Released
-LGPL License Option Added to Qt

Valid XHTML 1.0!

Valid CSS!