Skip to main content


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 22:25 Go to next message
Patrick Mising name is currently offline Patrick Mising nameFriend
Messages: 5
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] Thu, 19 April 2012 01:47 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
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 16:21 Go to previous messageGo to next message
sNop is currently offline sNopFriend
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 17:13 Go to previous message
Patrick Mising name is currently offline Patrick Mising nameFriend
Messages: 5
Registered: January 2010
Junior Member
Perfect. Thank you!
Previous Topic:conflicting dependency
Next Topic:Working installation, anybody?
Goto Forum:
  


Current Time: Sat Oct 05 16:05:26 GMT 2024

Powered by FUDForum. Page generated in 0.04326 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top