Page 1 of 1

Run PHP on Current File?

Posted: Mon May 21, 2007 1:03 pm
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

Posted: Mon May 21, 2007 6:45 pm
by troels_kn
Configure > Preferences > Add > Program
Find php.exe
Press 'OK'
Press 'OK'

Posted: Mon May 21, 2007 9:09 pm
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

Posted: Mon May 21, 2007 9:12 pm
by ashore
Sorry - I shudda mentioned it - but I tried it after reload/reboot, and still nuthn.

-AS

Posted: Mon May 21, 2007 10:02 pm
by troels_kn
If you want to see the output of the script, you will need to check 'Capture Output' in the tools settings.

Posted: Tue May 22, 2007 12:58 am
by ashore
More easily said than done: that checkbox is grayed out. Any thoughts here?

Posted: Tue May 22, 2007 12:19 pm
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'

Posted: Tue May 22, 2007 1:37 pm
by ashore
It works! (I changed a couple of things - and I'm not sure which did it.) Thanks for the help and patience.