Forum Moderators: coopster

Message Too Old, No Replies

main() stream does not support seeking

help me

         

djgreg

12:35 pm on Jul 7, 2004 (gmt 0)

10+ Year Member



Hi,

since my hosting company has seems to have upragded PHP to 4.2.3 all my php includes produce the error mentioned in the title.
I have tried everything to supress the error warning but nothing helped. I tried @include and error_warning(0); but it did not help.
Finally I've rewritten all includes starting with http:// to local folders like /home/web/www/http/folder/site.html

Nothing helps .
Has anybody an idea besides the ones I already tried?

thanks a lot

ergophobe

4:02 pm on Jul 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hah! lucky you. This appears to be a PHP bug that was eliminated, reintroduced, and then fixed again in 4.3.7

[bugs.php.net...]

[php.net...]

4.3.2 is how many months old at this point? I think you may want to start looking for a new hosting provider....

I can understand that hosts might not change from one whole number version to another for fear of breaking existing sites, but not upgrading from 4.3.x to 4.3.y is just lazy.

If you are able to change over to includes via the local file system, that means that the files are on the local file system. You should not use http includes in that case anyway since it is over an order of magnitude slower.

Try this

include($_SERVER['DOCUMENT_ROOT'] . '/directory/file.php';

Tom

djgreg

5:39 am on Jul 8, 2004 (gmt 0)

10+ Year Member



Hi,

I have tried this option already, but it also does not work with includes from the local file system.
grr, I am getting angry a bit now.
After writing several support requests to this host I finally think I should change hosts, too.

anyway, thanks for your help

greg