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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: webmaster at surrealhosting dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 16:01:28 2024 UTC