Re: Can you run php on batch file?
am 12.10.2007 12:07:07 von colin.mckinnon
On 12 Oct, 06:43, "news.telus.net" 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.