|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2007-10-18 05:52 UTC] laurentschoenaers at gmail dot com
 Description:
------------
Hey guys,
I'm running a website, and since yesterday at midnight some part of my script stopped to run. Nothing has been changed in the scripts and my host even re?nstalled to whole server for me to make sure the problem isn't server-related. But still the problem is still here.
If I comment my ob_start() function, the sites starts good, but only parts are shown and full of header error. Ok no problem, but I want the ob_start() to be there, but then the site doesn't load, the browser gives a "page not found error'.
Here's the situation:
I use the ob_start() script on all my pages (homepage, usersection and adminpanel). Only in the usersection it suddenly stopped to work properly. After several mails with my host they say there is an "exit signal segmental fault" or something. How can I resolve this? And how come that suddenly it stopped to work while nothing was changed to the server nor to the scripts?
Reproduce code:
---------------
in the top file:
<?php
function callback($buffer)
{
	return (ereg_replace("nothing", "nothing", $buffer));
}
ob_start("callback");
?>
In the bottom file:
<?
mysql_close();
ob_end_flush();
?>
Expected result:
----------------
After a login the usersection should be loaded. Which worked fine till yesterday at midnight.
Actual result:
--------------
The browsers gives a blank page with "page not found" error.
With the ob_start() commented, it only shows parts of the code, with suddenly some uncompiled html tages in my page. But mostly only 75% of the html-code gets through, and the other 25% gets ignored.
I use in my files:
<?
include("include/ig_top.php");
...
include("include/ig_bottom.php");
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Well the problem is that on my homepage and my admin panel it still works fine. And the script has been running fine for around 4 years, and it suddenly stopped working. ---------- <?php function callback($buffer) { return (ereg_replace("nothing", "nothing", $buffer)); } ob_start("callback"); //code goes here... ob_end_flush(); ?> -------- On my local server it still works fine as well.. Is there any reason why ob_start() could sunndely stop working? Maybe clearing the cache or something? Sincerly, Laurent Schoenaers