| 
	
 | 
 Posted by C. (http://symcbean.blogspot.com/) on 10/12/07 10:07 
On 12 Oct, 06:43, "news.telus.net" <dkfjld...@dfd.com> wrote: 
> Is it possible to run the php on the web container and 
> be able to display debug message like what you do with servlet 
> running on the Tomcat going 
> System.out.println("this is debugging")? 
> 
> I know php provide echo or print but this isn't good enought to 
> debug when becoming the big system. 
> 
> SK 
 
You don't seem to have grasped that PHP does not work like Java. 
 
I assume you mean you want to write debug information to a different 
stream than the browser - yes, it is possible. There's lots of ways 
of  doing it, but the right way is to use the syslog facility. 
 
Read this: 
 
http://www.php.net/errorfunc 
 
and this 
 
http://www.devshed.com/c/a/PHP/Logging-With-PHP/ 
 
C.
 
  
Navigation:
[Reply to this message] 
 |