Date: 07/02/00
- Next message: Spruce Weber: "[phplib] logic error in add_query()"
- Previous message: Adam Thompson: "Re: [phplib] Calling C functions."
- In reply to: Adam Thompson: "Re: [phplib] Calling C functions."
- Next in thread: Eugene Teo: "[phplib] Doesn't seem to read php.ini"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 1 Jul 2000, Adam Thompson wrote:
=>> From: "Ramy M. Hassan" <ramy <email protected>>
=>> Subject: [phplib] Calling C functions.
=>>
=>> I have a legacy cgi application written in C.
=>> I want to take advantage of phplib session management and
=>> authentication.
=>> I decided to rewrite this cgi application in php, but it is real pain
=>to
=>> write everything for such large application. Is there any way to call
=>C
=>> functions from php scripts ?
=>
=>Not if you're using PHP3. I have no idea if PHP4 allows this or not.
=>
=>What you would have to do would be write PHP3 wrapper functions, compile
=>them, and either link them into the PHP3 module/cgi/whatever or use them
=>as loadable modules.
=>
=>Unfortunately, that would call for a significant application of magic,
=>since the interface isn't exactly well-documented.
try to find examples in php/examples directory
there 5 examples (calendar, crypt, etc)
this is good point to start
mx
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Spruce Weber: "[phplib] logic error in add_query()"
- Previous message: Adam Thompson: "Re: [phplib] Calling C functions."
- In reply to: Adam Thompson: "Re: [phplib] Calling C functions."
- Next in thread: Eugene Teo: "[phplib] Doesn't seem to read php.ini"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

