Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How do I run my PHP file as a PHP CLI Application
How do I run my PHP file as a PHP CLI Application [message #849110] Wed, 18 April 2012 18:25 Go to next message
Patrick Missing name is currently offline Patrick Missing name
Messages: 4
Registered: January 2010
Junior Member
I'm running Indigo SR 2 on OSX 10.7.3 and I installed PDT 3.0.1v2012011100400.

When I right click on a PHP file and select "Run as", I don't see an option to run as a "PHP CLI Application". If I select "Run Configurations", create a new configuration under "PHP CLI Application", select the PHP file with the "Browse" button and hit the "Run" button then it runs successfully.

Can someone tell me what I need to do to be able to right click on the file and run it as a PHP CLI Application?

Thanks in advance,
Patrick
Re: How do I run my PHP file as a PHP CLI Application [message #849241 is a reply to message #849110] Wed, 18 April 2012 21:47 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 345
Registered: July 2009
Location: Japan
Senior Member
Window->Preferences->PHP->Debug->check "Enable CLI Debug"

(I'm feeling it's a bad trap)
Re: How do I run my PHP file as a PHP CLI Application [message #849974 is a reply to message #849241] Thu, 19 April 2012 12:21 Go to previous messageGo to next message
sNop is currently offline sNop
Messages: 281
Registered: July 2009
Senior Member
You're right.

On 19. 4. 2012 3:47, Toshihiro Izumi wrote:
> I'm feeling it's a bad trap
Re: How do I run my PHP file as a PHP CLI Application [message #850007 is a reply to message #849974] Thu, 19 April 2012 13:13 Go to previous message
Patrick Missing name is currently offline Patrick Missing name
Messages: 4
Registered: January 2010
Junior Member
Perfect. Thank you!
Previous Topic:conflicting dependency
Next Topic:Working installation, anybody?
Goto Forum:
  


Current Time: Fri Aug 29 18:40:57 EDT 2014

Powered by FUDForum. Page generated in 0.01787 seconds