dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: require_once problem!

  1. #1
    Join Date
    Jun 2003
    Posts
    60

    require_once problem!

    Hello!

    I use this code:

    <?php require_once(http://www.mydomain.com/cgi-bin/myscript.cgi'); ?>

    And when I load the index.php page I see the script like it should be in (SSI) but i also see a line above it saying:

    Warning: main(): stream does not support seeking in /home/public_html/index.php on line 127


    Line 127 is the line where the require_once function is placed on...

    Any one know what the oproblem could be?

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    You missed a quotation mark. Try this:

    <?php require_once('http://www.mydomain.com/cgi-bin/myscript.cgi'); ?>

  3. #3
    Join Date
    May 2003
    Posts
    550
    Besides the quotation- I did a little research on that error.
    It seems hundreds of people have said their host upgraded PHP or recompiled it and all of a sudden they get this error for every include or require.
    I couldnt find exactly what it means-but you can hide the error like this
    <?php @require_once('http://www.mydomain.com/cgi-bin/myscript.cgi'); ?>

  4. #4
    Join Date
    Jun 2003
    Posts
    60
    Thanks!

  5. #5
    Join Date
    May 2003
    Posts
    550
    No prob-remember thats not fixing the problem, just hiding it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles