Re: [PHP] ob_start() -- ob_end_flush() problem
[email protected] (Aziz Saleh)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAPJtNhWwSMKCXDHAfNZTa2BtpbH-s=njVK+6JGyHAxx95vczng@mail.gmail.com> |
On Sat, Apr 29, 2017 at 4:15 PM, Tedd Sperling <[email protected]> wrote: > > > On Apr 29, 2017, at 10:20 AM, Aziz Saleh <[email protected]> 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 > [email protected] > > > > > > 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.