php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26550 Having a problem with include
Submitted: 2003-12-07 16:45 UTC Modified: 2003-12-14 21:16 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: webmaster at surrealhosting dot net Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 4.3.3 OS: Red Hat Lynix 7.2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-12-07 16:45 UTC] 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 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-07 22:40 UTC] iliaa@php.net
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.
 [2003-12-14 21:16 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 13:01:29 2024 UTC