Tracing output on a live web page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mcmcom
Forum Newbie
Posts: 14
Joined: Thu Jan 31, 2008 7:23 am

Tracing output on a live web page

Post by mcmcom »

Hi all, im relatively new to php although i have been a web programmer for quite a while now. (M$ Tech.) I have a weird issue i can't seem to figure out and need a bit of help.

Basically a client has a web page with a form - the form posts to itself and php handles the creation of a SOAP client to send to a 3rd party API (as a wsdl). The client is getting 100% error from their environment (using php 4). I took the files and tested locally (to debug) and it works all the time for me. however it never works from the clients domain.

I need a way to either "trace" or write out stuff to the web page so i can determine if teh data getting passed to the API is really the same as on my local machine.

i tried using echo $myVars but it never displays anything on the page. Is there a trace function or something i can use that will output variables to the live page?

thanks in advance,
mcm
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Tracing output on a live web page

Post by Christopher »

You are probably trying to get information from the SOAP transaction. You will probably need to log the information to a file.
(#10850)
Post Reply