I currently have a tool set up to check php syntax set up as follows:
Command: cmd.exe
Parameter: W:\xampp\php\php -l $File
Initial folder: $FileDir
I'm now using wampstack instead of xampp and the equivalent parameter, C:\Bitnami\wampstack-7.1.25-0\php -l $File
does not work.
Anyone know how to set it up so it does work?
Setting up a PHP debug tool
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Setting up a PHP debug tool
Cheers, Nick
www.square-sun.net
www.square-sun.net
Re: Setting up a PHP debug tool
Why not calling PHP.EXE directly - why piping it thru CMD.EXE?Nick wrote:Command: cmd.exe
Parameter: W:\xampp\php\php -l $File
Does this even exist? Have you entered this very line into a command prompt and it starts PHP.EXE?Nick wrote:C:\Bitnami\wampstack-7.1.25-0\php -l $File
What did you expect and what happened instead? Also consider using a proper way:Nick wrote:does not work
- Configure > Preferences > Tools > Add > Program
- Select a file: the PHP.EXE > Ok > Apply
- (your new tool) Parameters: -l $File; Regular expression to match output: (empty that textbox) > Ok