NYCPHP Meetup

NYPHP.org

[nycphp-talk] CSV output

Mark Withington mwithington at PLMresearch.com
Mon Sep 13 07:56:31 EDT 2004


Mark and Chris,

That did the trick (ob_start prior to the part that PHP was complaining
about).  First time using output buffering for me (could you guess ;-).

Really appreciate the help.

--------------------------
Mark L. Withington
PLMresearch
v: 508-746-2383
m: 508-801-0181
Calendar: http://www.plmresearch.com/calendar.php



-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Chris Shiflett
Sent: Monday, September 13, 2004 2:32 AM
To: NYPHP Talk
Subject: RE: [nycphp-talk] CSV output


--- Mark Armendariz <nyphp at enobrev.com> wrote:
> Take a look at header.php line 36.  It could be an extra space or 
> newline at the end of a file or an errant echo.

Just to add to this, since it looked like you were using output buffering,
you want to check to make sure your call to ob_start() happens prior to that
part that PHP is complaining about. The ob_end_clean() call should not
output anything, as you were assuming, but there is definitely some output
being generated either prior to ob_start() or after the first encounter of
something like ob_end_clean(), since that turns off output buffering.

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
     Coming Fall 2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/
_______________________________________________
New York PHP Talk
Supporting AMP Technology (Apache/MySQL/PHP)
http://lists.nyphp.org/mailman/listinfo/talk
http://www.newyorkphp.org



More information about the talk mailing list