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>




  



January 2009
M T W T F S S
« Dec    
 1234
567891011
12131415161718
19202122232425
262728293031  

Statistics

There are currently 32 posts and 22 comments, contained within 12 categories.


Miscellaneous
- Source Files

Add to Technorati Favorites


Storage B
-WordPress 2.7
-OpenDDS Version 1.2 Released
-FreeVMS
-OpenDDS Version 1.1 Released
-C++ functions to convert between decimal degrees and degrees, minutes, and seconds
-WordPress 2.5
-Multics
-C++ Functions to Evaluate Chebyshev Polynomials
-OpenDDS
-X Windows Programming in C++: Part III

Valid XHTML 1.0!

Valid CSS!