This is a discussion on Newbie Question: Can PHP communicate with a C function/program within the PHP Language forums, part of the PHP Programming Forums category; I have several library functions that have been created in 'C' which I would prefer not to have to re-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have several library functions that have been created in 'C' which I
would prefer not to have to re-write all of them to PHP. Is there a way to get PHP to run these library functions? Any help would be appreciated. Thanks, David |
|
|||
|
"DSandmann" <CrackerDog22@yahoo.com> wrote in message
news:vra4algn5m2f12@corp.supernews.com... > I have several library functions that have been created in 'C' which I > would prefer not to have to re-write all of them to PHP. > > Is there a way to get PHP to run these library functions? > > Any help would be appreciated. Yes, extensions. I hate to be vague, but I don't know enough to tell you about them (just learning myself). -- Mike |
|
|||
|
DSandmann <CrackerDog22@yahoo.com> wrote in message
news:<vra4algn5m2f12@corp.supernews.com>... > > I have several library functions that have been created in 'C' which I > would prefer not to have to re-write all of them to PHP. > > Is there a way to get PHP to run these library functions? Yes, and more than one. You can either use the dl() function: http://www.php.net/dl or write your own PHP extension (see files README.SELF-CONTAINED-EXTENSIONS and README.EXT_SKEL in your source distribution). Cheers, NC |