Howto add syntax checking for PHP

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
fishnet_uk
Posts: 1
Joined: Fri Dec 01, 2006 1:22 am

Howto add syntax checking for PHP

Post by fishnet_uk » Fri Dec 01, 2006 1:22 am

Hi,

I have just added PHP syntax checking to my PrimalScript and though I'd share how:

Download the version of PHP you require from www.php.netI chose the ZIP version of 4.4.4 because that what running on the server I'm working on.

Unzip the contents to C:php-4.4.4-Win32 (or somewhere else if you like but remember where you put it).

Goto

Tools > Options > Environment > Languages

and choose PHP.

Choose Compile / Syntax check

Browse for the php.exe program you just downloaded

In Arguments: add

-l "$File$"

thats: hiphen lower case L at the beggining, not a one. The quotes are there in case there is a space in the file path of your script.

Hit OK to save.

Hit CTRL-F7 in your script to check the syntax.

Maybe the developers can use this to add live syntax checking?

Regards

Ian
--