Calling C Functions
| From: | Ron Scott | Date: | Wed, 04 Oct 2000 17:23:35 +0000 |
| Subject: | Calling C Functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18621@lists.php.net to get a copy of this message | ||
Hi,
is there a way to call C functions in php script from libraries or
object files like KSH, PostgreSQL does?
i.e.
<?php
declare custom_func() to takes two int args, and returns int;
/* location of *.so files? */
call to custom_func(int, int);
?>
and the corresponding C function:
int custom_func(int x, int y) { return x + y; }
Cheers,
-Ron
--
UNIX was never designed to keep people from doing stupid things, because
that policy would also keep them from doing clever things. (Doug Gwyn)