Best way for executing PHP inside the IDE
Hi (again ^_^) !
I'm working on a plugin for PHP, and sometimes I want to execute PHP and get the output directly.
I'm doing that right now with GeneralCommandLine.
But it's a bit slow (maybe that's because my slow computer).
Do you know a better way for doing this? does have the IDE some special feature for running PHP code?
Also, I'm having a problem with projects running in Virtual Machines (the code is local, but the server is inside a VM). Because I don't know how to run PHP with GeneralCommandLine in that situation (I need to execute PHP inside the VM). Do you know a solution for this?
Thanks !!!
Enrique.
Please sign in to leave a comment.
No, IntelliJ IDEA does not have any feature to run PHP code, either special or not.
To execute PHP under a VM, you'll need to set up an SSH connection and run PHP through SSH. We don't currently have any code in the platform to help you with that.
You don't have code for the SSH connection either?
There are a number of open-source libraries (jsch for example) that you can use for this purpose.
OK, I will go for it, I'm not a Java developer so this plugin is becoming a bit challenging to me, thanks !