[thelist] [php] running scripts via command line

Kevin p+evolt at redbrick.dcu.ie
Mon Dec 9 06:33:01 CST 2002

On Mon, Nov 25, 2002 at 12:43:10PM +1300, Paul Bennett wrote:
> I have been running PHP locally for a while now but have come across the
> need to debug WAP application code. Unfortunately wap devices do not
> output php's nice informative error messages, and will just give an
> "unrecognised content" error if a function or query goes awry. This
> makes it somewhat challenging to debug, especially with function calls
> to functions within includes etc...Can I get php scripts running via the
> command line and outputting into the dos window? This would make it very
> easy to see errors, bent code etc.
> Thanks in advance all you lovely people :p

Yea, at the commandline just run php myscript.php

php -a will run scripts interactively.

also, i'm sure you could modify php error msgs to produce wap versions.
So they'd display.

- Kevin

More information about the thelist mailing list