36 users online (0 members and 36 guests)  


  Results 1 to 6 of 6

Related

  1. Replies: 1
  2. Video stream with ASP.NET    Forum: ASP Forum
    Replies: 2
  3. how to stream mp3s    Forum: HTML Forum
    Replies: 1
  1. #1
    nassau12's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Princeton, NJ
    Posts
    32

    Getting Warning message

    The following warning message is showing up when calling for a php include.

    Warning: main(): stream does not support seeking in...
    The include then displays properly, but why the warning, and how do I get rid of it?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    look up the error at www.php.net/

    is it on your local machine or on a web server?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    nassau12's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Princeton, NJ
    Posts
    32
    Its on 100megs server. I've checked with them and they think it is a coding problem.

    Code is as follows:
    <?include "http://www.witherspoonbooks.com/mathematics/mathinclude.inc" ?>
    <?include "http://www.witherspoonbooks.com/mathematics/math_links.inc" ?>

    You can see the error at http://www.witherspoonbooks.com/mathematics/
    Last edited by nassau12; 06-02-2003 at 04:04 PM.

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    try
    Code:
    include("math_links.inc");
    If an include starts with http://php assumes that it is to use the output, not the code itself. Try it without.

    Failing that, try changing the file name to math_link.inc.php
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    nassau12's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Princeton, NJ
    Posts
    32
    Got around the problem by using the following code:
    *******
    <?php @

    include('http://www.mysite/myinclude.inc');

    ?>
    ********
    For some reason, inserting the @ removes the warning.

  6. #6
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Yes, it 'supresses' it.

    As long as its actually including, cool.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread