The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

C functions from PHP script? by wonga-bonga2003-02-13 01:45:14
  I think i got it once by mhiper3 2003-02-13 02:37:27
what i did was create a PHP extension (an easy one, about 10 lins of code) with the C function 'dl' (it does about the same as the PHP 'dl).

Then, I put the C functions in a shared library (eg: libMyProject) and then I could call C functions from PHP.

For doing the reverse, I compiled the whole PHP core as a shared lib (8 MB of shared lib) and then compiled my C programs against that library.

I must have the code somewhere over here, but I have and exam his evening, and I won't be able to look for it until I finish.If you are interested, reply to this post, and I'll search for it
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)