Locating erroneous php ouput

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
bzvine
Forum Newbie
Posts: 4
Joined: Mon Apr 18, 2016 1:23 pm

Locating erroneous php ouput

Post by bzvine »

Hi,

I am using ajax to receive an xml document created by a php program. The program which outputs the xml document contains multiple required classes. One of the required classes is also sending out data (looks like print_r output) which causes ajax to not recognize the xml document.

I have searched for print_r, print, and echo but am unable to locate the culprit. Any suggestions would be appreciated.

I program using command line vi on a linux system running apache2 with php5 - nothing fancy. Do use php custom error handler (set_error_handler) for logging and error handling.

Thanks,
bzvine
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Locating erroneous php ouput

Post by Celauran »

Checked for var_dump also?
bzvine
Forum Newbie
Posts: 4
Joined: Mon Apr 18, 2016 1:23 pm

Re: Locating erroneous php ouput

Post by bzvine »

Hi,
No var_dump - grep'd for var_ and found var_export as the culprit.
Thanks Celauran!!
Post Reply