Page 1 of 1

PHP Syntax

Posted: Thu Sep 28, 2006 10:47 am
by mojeIme
Hi,
I have a problem with checking the php code, and i need some help. Using the AMFPHP ,my php class does not display the php syntax errors.When the class has errors, i don't get any report.So how can i check it before the runtume (Dreamweaver) ,like actionscript's "check syntax"?
Thanx in advance.

Posted: Thu Sep 28, 2006 1:20 pm
by Weirdan
run this from command-line

Code: Select all

php -d display_errors=on -l <filename>.php
Naturally, you would need to substitute <filename> with the name of your file.