Run PHP on Current File?

General questions about using TextPad

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

Post Reply
ashore
Posts: 5
Joined: Mon May 21, 2007 12:53 pm

Run PHP on Current File?

Post by ashore »

Folks, I had the script(?) in a prior install of TP, but I've lost that. (It was Ctrl-4, IIRC) Can anyone provide a howto?

Thanks

-AS
troels_kn
Posts: 32
Joined: Fri Oct 28, 2005 12:51 pm

Post by troels_kn »

Configure > Preferences > Add > Program
Find php.exe
Press 'OK'
Press 'OK'
ashore
Posts: 5
Joined: Mon May 21, 2007 12:53 pm

Post by ashore »

Hey, thanks. I did that, and Ctrl-4 now appears in the Tools box OK, but nuth'n when I try it.

I'm running Vista - is that a pblm? Or, ???

-AS
ashore
Posts: 5
Joined: Mon May 21, 2007 12:53 pm

Post by ashore »

Sorry - I shudda mentioned it - but I tried it after reload/reboot, and still nuthn.

-AS
troels_kn
Posts: 32
Joined: Fri Oct 28, 2005 12:51 pm

Post by troels_kn »

If you want to see the output of the script, you will need to check 'Capture Output' in the tools settings.
ashore
Posts: 5
Joined: Mon May 21, 2007 12:53 pm

Post by ashore »

More easily said than done: that checkbox is grayed out. Any thoughts here?
troels_kn
Posts: 32
Joined: Fri Oct 28, 2005 12:51 pm

Post by troels_kn »

ashore wrote:More easily said than done: that checkbox is grayed out. Any thoughts here?
I'm not entirely sure, why those options are sometimes grayed out. What's the path to the exe (The 'Command' field)? Try changing it to simply 'php'
ashore
Posts: 5
Joined: Mon May 21, 2007 12:53 pm

Post by ashore »

It works! (I changed a couple of things - and I'm not sure which did it.) Thanks for the help and patience.
Post Reply