Setting up a PHP debug tool

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
Nick
Posts: 52
Joined: Fri Aug 22, 2003 7:12 am
Location: Newcastle under Lyme, UK
Contact:

Setting up a PHP debug tool

Post by Nick »

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?
Cheers, Nick
www.square-sun.net
User avatar
AmigoJack
Posts: 550
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Setting up a PHP debug tool

Post by AmigoJack »

Nick wrote:Command: cmd.exe
Parameter: W:\xampp\php\php -l $File
Why not calling PHP.EXE directly - why piping it thru CMD.EXE?
Nick wrote:C:\Bitnami\wampstack-7.1.25-0\php -l $File
Does this even exist? Have you entered this very line into a command prompt and it starts PHP.EXE?
Nick wrote:does not work
What did you expect and what happened instead? Also consider using a proper way:
  1. Configure > Preferences > Tools > Add > Program
  2. Select a file: the PHP.EXE > Ok > Apply
  3. (your new tool) Parameters: -l $File; Regular expression to match output: (empty that textbox) > Ok
Post Reply