Re: ob_start() -- ob_end_flush() problem

From: Date: Sat, 29 Apr 2017 20:38:55 +0000
Subject: Re: ob_start() -- ob_end_flush() problem
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-326080@lists.php.net to get a copy of this message
On Sat, Apr 29, 2017 at 4:15 PM, Tedd Sperling <tedd@sperling.com> wrote: > > > On Apr 29, 2017, at 10:20 AM, Aziz Saleh <azizsaleh@gmail.com> wrote: > > > >> > > Are you using the same includes/open|close-db.php in both instances? If > the > > answer is not, can your student try using your db files and see if it > works > > or vise-versa (you use theirs). The code looks fine and the issue could > lie > > with the included files/settings. > > Yes, the code in all instances (including the includes) is exactly the > same. > > I added the -- > > $page = ob_get_contents(); > /* end buffered output */ > echo($page); > > — in both cases and theirs failed and mine did not. > > My original code just used ob_start() and ob_end_flush() and worked just > fine. Again, theirs did not. > > I’ll try Arno’s suggestion an echo something simple and see if that works. > > Thanks, > > tedd > > _______________ > tedd sperling > tedd@sperling.com > > > > > > I am all for trusting ops with their word but sometimes you need to confirm things yourself. Do you see any difference between the 2 servers settings wise using phpinfo(), or php -i if you are on command prompt.

« previous php.general (#326080) next »