Click to See Complete Forum and Search --> : require_once problem!


deep
07-09-2003, 06:11 PM
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?

pyro
07-09-2003, 06:14 PM
You missed a quotation mark. Try this:

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

brendandonhue
07-09-2003, 06:17 PM
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'); ?>

deep
07-10-2003, 05:20 AM
Thanks!

brendandonhue
07-10-2003, 10:24 AM
No prob-remember thats not fixing the problem, just hiding it.