Page 1 of 1

Main Stream? Wha?

Posted: Fri May 14, 2004 7:23 am
by Chelsey
Hey, so I just got with a new web host, and I'm currently in the process of moving my old files to their databases.

My problem is that on the pages it's giving me this wierd text:

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

It never used to do that on my old site, and it's the exact same php coding. Is there some type of php file I'm missing that I haven't uploaded onto the server?

Posted: Fri May 14, 2004 7:26 am
by jason
Different versions of PHP with different installed modules. Your new host probably has things configured a little differently.

Rather, what's the file's code that's giving the problem?

Posted: Fri May 14, 2004 7:28 am
by Chelsey

Code: Select all

<?php


include("http://www.boundkingdom.com/top.htm");

?>
<?php echo "$top"; ?>
It echoes the htm correctly, but it has that text I have in the first post, also.

Posted: Fri May 14, 2004 8:06 am
by launchcode
Is that file (top.htm) on YOUR site, or another one? If it's on your site - you don't need the http:// stuff at the start, infact it is causing the error you have because for whatever reason, your new host doesn't seem to like / have configured properly the http protocol wrapper for the file streams. fseek() is used from PHP version 4.3.0 and above - run a phpinfo() to check what version your new host uses? (and tell is their name so others might avoid using them!!)

Posted: Fri May 14, 2004 8:35 am
by d3ad1ysp0rk
It's a security precaution so only people on that domain can include the files..

Posted: Fri May 14, 2004 8:39 am
by launchcode
That's one way to describe it.

Posted: Fri May 14, 2004 8:39 am
by Chelsey
Is there other kind of easy php code that I could use to display my top and left bar htm instead of the current php echo I'm using? :?

Posted: Fri May 14, 2004 8:40 am
by launchcode
Chelsey - answer my original question and we can probably show you another way. See up.

Posted: Fri May 14, 2004 8:44 am
by d3ad1ysp0rk

Code: Select all

<?php include("top.htm"); ?>

Posted: Fri May 14, 2004 8:57 am
by Chelsey
Top.htm is located in my main folder of html. But I have sub folders for each game page on the site.

Posted: Fri May 14, 2004 9:11 am
by launchcode
Chelsey - as punkSkater said you can just do an include for the local file.

However the include() function works on a local directory basis - so you will be better off setting the entire directory of the file, like this:

Code: Select all

include '/usr/home/site/whatever/top.htm';
Obviously change the directory path to match your host.

Posted: Fri May 14, 2004 9:33 am
by Chelsey
Ohmigod. Thank you all so much. I just fixed the problem. 8)

Again, much thanks.

-Chelsey