In C#/.NET, I can use Trace.Write or Debug.Write to output application specific diagnostics. What would be the equivalent in PHP? echo is outputting to my web page which I don't want.
Asked
Active
Viewed 97 times
0
-
1Try http://stackoverflow.com/questions/5663077/xdebug-and-no-profiling-output and http://xdebug.org/docs/install – ka_lin Apr 23 '14 at 22:08
-
1A lot of people aren't familiar with C#. Could you explain what those commands do / what you want? – Karoly Horvath Apr 23 '14 at 22:10
1 Answers
1
You could write data to the error_log using error_log()
Via the second argument you can select the type of logging you want, such as file logging, system logging or even email.

nl-x
- 11,762
- 7
- 33
- 61