PHP Syntax

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mojeIme
Forum Newbie
Posts: 22
Joined: Sat Jul 29, 2006 8:58 am

PHP Syntax

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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.
Post Reply