RE: [PHP] Calling C functions
| From: | Timothy J Hitchens | Date: | Wed, 09 Oct 2002 03:09:55 +0000 |
| Subject: | RE: [PHP] Calling C functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119377@lists.php.net to get a copy of this message | ||
If it is a command line executable just do:
<?php
$arg1 = 'do';
$arg2 = 'start';
/usr/sbin/goforit $arg1 $arg2;
?>
Notice the backward ` they send it to the shell.
Have fun!!
Timothy Hitchens (HITCHO)
tim@hitcho.com.au
HITCHO has Spoken!
-----Original Message-----
From: Sharad Tiwari [mailto:sharad.tiwari@wipro.com]
Sent: Wednesday, 9 October 2002 1:07 PM
To: php-general@lists.php.net
Subject: [PHP] Calling C functions
hi all,
I have just started working on PHP ... (just a couple of days back) I
had posted a question yesterday and could not get any rep from anyone
....
My problem is this ... I have to take inputs from a web-based interface
and pass them as parameters to a C function (or an executable program)
Could anyone of you kindly let me know how can I invoke such C library
functions or executables from php.
thanks for the help in advance.
Warm Regards,
Sharad