[PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function and send the info as parameters. Is

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Tijnema
On 6/15/07, Dan [EMAIL PROTECTED] wrote: Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function and

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Richard Heyes
Dan wrote: Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function and send the info as

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Dan [EMAIL PROTECTED] wrote: Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function and

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Will that script also work on Apache in Windows? OS X? Just checking because the backend and front end both need to be able to be installed on any OS. Also I looked at exec(), system(), and passthru(); they all let you execute a executable file but I don't see any way of passing parameters

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Dan [EMAIL PROTECTED] wrote: Will that script also work on Apache in Windows? OS X? Just checking because the backend and front end both need to be able to be installed on any OS. Also I looked at exec(), system(), and passthru(); they all let you execute a executable file but I

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Wow, thanks for the code and the fast response! :) Although maybe I should clarify my probem a bit more, I'm trying to run a program, but I want it to stay open so that I can call functions later. When the user opens a file, it's uploaded to a folder where PHP can access it, then PHP would

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Dan [EMAIL PROTECTED] wrote: Wow, thanks for the code and the fast response! :) Although maybe I should clarify my probem a bit more, I'm trying to run a program, but I want it to stay open so that I can call functions later. When the user opens a file, it's uploaded to a folder

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Thanks for your help. Since it's a Delphi program and Delphi has the ability to build ISAPI applications I'm going to try and see if I can't turn my app into an ISAPI and run that since it has all the functionality I need and it'll run fast. But if that doesn't work out I'll try the solutions