Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have an executable file (executor.exe) that works with windows.

It takes input and provides output. It takes as input a text file, then it connects to some websites, and finally it exports a file that depends on the command line parameters (usually txt or xml).

For example, if I run the following command in windows command line:

X:\path\to\executor.exe input.wpf -format xml -out output.xml

  • the executor will read the input.wpf (a simple txt file)
  • it will connect to some websites included in the wpf file
  • it will output an xml file with the filename "output.xml"

I have already set up the plugin main code, and have set up a scheduler, too. Now, I'm looking for a way to run this exe file from inside a wordpress plugin.

So I have 2 questions:

  1. How can I run the executor at the backend of Wordpress? Will it output the xml file?

  2. My webhost is a shared one and it's based on linux. Would this be a problem if someone has some other configuration/setup in his webhost?

share|improve this question
1  
While you can execute things from PHP (which is better asked about at Stack Overflow), Windows executable simply won't work on Linux. – Rarst Jan 6 at 11:00

closed as not constructive by Bainternet Jan 6 at 12:05

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.