#26550 [Opn->Fbk]: Having a problem with include
| From: | iliaa@php.net | Date: | Mon, 08 Dec 2003 03:40:07 +0000 |
| Subject: | #26550 [Opn->Fbk]: Having a problem with include | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-51794@lists.php.net to get a copy of this message | ||
ID: 26550
Updated by: iliaa@php.net
Reported By: webmaster at surrealhosting dot net
-Status: Open
+Status: Feedback
Bug Type: *General Issues
Operating System: Red Hat Lynix 7.2
PHP Version: 4.3.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
file_get_contents() is much better & faster and that is what you should
be using.
You also should try using the latest snapshot with it I do not see the
problem you've mentioned.
Previous Comments:
------------------------------------------------------------------------
[2003-12-07 16:45:57] webmaster at surrealhosting dot net
Description:
------------
Hello well on my forum i have it include a header and footer from my
main page and i get this error
Warning: Unknown(): stream does not support seeking in
/home/cflores/public_html/forum/global.php(313) : eval()'d code on line
4
Warning: Unknown(): stream does not support seeking in
/home/cflores/public_html/forum/global.php(313) : eval()'d code on line
9
The following code is what i put in my vbulletin forum.
Reproduce code:
---------------
ob_start();
require_once("http://www.surrealhosting.net/forum/header.php");
$header3 = ob_get_contents();
ob_end_clean();
ob_start();
require_once("http://www.surrealhosting.net/forum/footer.php");
$footer3 = ob_get_contents();
ob_end_clean();
Expected result:
----------------
i expect it to just show the header and footer phps
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26550&edit=1