Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on Stream does not support seeking? in the Shared & Semi-Dedicated forum
hey, on This page (and all of the other pages I have includes on too I guess, this is just the main test page) I'm ...

  1. #1
    JPC Member
    Join Date
    Aug 2002
    Posts
    32

    Stream does not support seeking?

    hey, on This page (and all of the other pages I have includes on too I guess, this is just the main test page) I'm getting a wierd error message at the top. Does anyone know why? It worked fine a while ago (like a month or 2) and i didn't change anything, but now I get the error, anyone able to help?

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    What does the included file do? Streams generally imply you are either accessing files or network resources.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Member
    Join Date
    Aug 2002
    Posts
    32
    It is a PHP include (includes a header, displays page info, then includes a footer) and it is including the header and footer fine, but I still get that error message.

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    I think that's a bug in the new version of PHP they just installed. Try putting a @ symbol in front of include, i.e.:
    PHP Code:
    @include("http://www.xtremefocus.org/webteam/menu/header.html"); 
    I think you can also fix it by changing the path from absolute to relative, i.e.:
    PHP Code:
    include("http://www.xtremefocus.org/webteam/menu/header.html"); 
    ...to this:
    PHP Code:
    include("../webteam/menu/header.html"); 
    ...or whatever...
    Last edited by Vin DSL; 07-31-2003 at 05:07 PM.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    JPC Member
    Join Date
    Aug 2002
    Posts
    32
    thanks vin! one question though, should I change all the includes on my site to "@include" or just wait (as if it's a bug it should be fixed pretty soon shouldn't it?)

  6. #6
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    An @ in front of any function name in PHP simply surpresses any error messages that function generates, so putting in that @ sign won't hurt anything down the road, even when the bug is fixed, so you can safely use it everywhere if you want.

    I just looked in this PHP bug database, and this is an open issue: http://bugs.php.net/bug.php?id=24053. It appears to be an issue related to including remote files (ie using http:// in your include() call). As Vin suggested, if you are including files that are on the same server as the script they are being included into, the proper way to do it is with a local path. This should get rid of the error and may speed up your site a little bit because there is less overhead involved in getting the included file.

    Another option would be to change PHP's error reporting to either not display errors at all, or to simply hide non-fatal error messages. Both of these can be done with .htaccess files.

    To disable error messages all together, add a line to a file called .htaccess in your public_html directory that looks like this:

    php_flag display_errors off

    With that, absolutely no error messages will ever be shown by PHP on your site, which can be a pain when you are testing something new, so I'd recommend just hiding the non-fatal stuff:

    php_value error_reporting E_ALL & ~E_NOTICE & ~E_WARNING

    Good luck...

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  7. #7
    JPC Member
    Join Date
    Aug 2002
    Posts
    32
    thanks everyone! I think I'll just leave it for now, as it is working fine (the include that is) and the site is in a testing folder (not live yet) so for the next month or 2 I'll be the only one seeing it

    Thanks again!
    Darrin

  8. #8
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Originally posted by Darrin
    thanks vin! one question though, should I change all the includes on my site to "@include" or just wait (as if it's a bug it should be fixed pretty soon shouldn't it?)
    Assuming everything is running okay, except for the 'error-errors', I'd just use '@include' on lines that are generating the errors.

    LoL! Does that make any sense?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •