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 Comments »

  1. 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. :)

    Alan — June 10, 2004 @ 2:17 am

  2. 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 :-(

    greg — July 7, 2004 @ 2:04 am

  3. 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.

    Mitecha — October 19, 2004 @ 8:28 pm

RSS feed for comments on this post. TrackBack URI

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)





  



November 2008
M T W T F S S
« Aug    
 12
3456789
10111213141516
17181920212223
24252627282930

Statistics

There are currently 31 posts and 16 comments, contained within 12 categories.


Miscellaneous
- Source Files

Add to Technorati Favorites



Storage B
-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
-X Windows Programming in C++: Part II

Valid XHTML 1.0!

Valid CSS!