Main Stream? Wha?
Moderator: General Moderators
Main Stream? Wha?
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?
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?
Code: Select all
<?php
include("http://www.boundkingdom.com/top.htm");
?>
<?php echo "$top"; ?>- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
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!!)
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Code: Select all
<?php include("top.htm"); ?>- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
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:
Obviously change the directory path to match your host.
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';