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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 parameters.

Is there any sort of server side call I can do to do this? Or is my only option making some sort of connection such as SOAP between PHP and the Program?

You could try shell_exec(). Eg:

$output = shell_exec('.usr/bin/foo ' . escapeshellarg($_POST['foo']));

--
Richard Heyes
0844 801 1072
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux