ID: 24053
Comment by: u_cant_take_me at hotmail dot com
Reported By: jphey at netdoor dot com
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux 2.4.20
PHP Version: 4.3.2
New Comment:
This is a common problem but its REALLY simple! Instead of pasting huge
chunks of code all you need 2 do is make php not report errors on the
file.
use the following code and it should work fine
<?php
error_reporting(0);
include("http://www.iainshortreed.net/webhome/gone.php");
?>
(That is a good piece of code to test with)
That should solve the problem, for more information about not reporting
some errors but reporting others you should take a look at......
http://www.php.net/error_reporting
Previous Comments:
------------------------------------------------------------------------
[2004-04-21 18:22:24] admin at 516homes dot com
I was getting this error on many of my websites which are spread on
several servers all with same version 4.3.2. I dont understand why it
happens on one server as opposed to another?
I was using it on http://www.ScriptWiz.com and then I transferred some
files to another server site called http://www.skinz.org and it kept
saying:
Warning: main(): stream does not support seeking in
/home/sitename/public_html/headernone1.php on line 193
But the same file on one server never exhibited this. Both servers
running 4.3.2.
I did use the @ and it has gone away for now.
kevin
------------------------------------------------------------------------
[2004-04-19 23:48:10] coolavin at dedanaan dot com
I'm still getting this same error in php includes, so apparently, it
still hasn't been fixed in the latest releases.
Using @include seems to work, suppressing the error message, but it's
not a solution, it just masks the problem.
A fix needs to be applied to the next update.
------------------------------------------------------------------------
[2004-04-10 14:00:31] gunner at muchthesame dot com
I just moved my site to a host running PHP 4.3.4 and I am now getting
this same message. I am including a file that is created on another
site of mine and therefore have to use the full url in the include.
The include works fine, but I do get this error about "seeking" even
though I am not seeking. If I suppress the error it seems to be okay
but I obviously shouldn't have to do this.
------------------------------------------------------------------------
[2004-02-12 14:01:05] [EMAIL PROTECTED]
That bug is fixed in the Zend Optimizer 2.5
(http://www.zend.com/store/free_download.php?pid=13)
------------------------------------------------------------------------
[2004-02-03 19:52:37] rgraham at star-fleet dot org
Running 4.3.4 with Zend installed same issue, seems this states it's
listed at 4.3.2, i thought i'd bring it up.
Even if it is a Zend Issue with Php doesn't it still fall into PHP's
bug list? Seems it wasn't there before and now it is?
The @include works because @ = supress the error messeges but it's
annoying.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24053
--
Edit this bug report at http://bugs.php.net/?id=24053&edit=1