Date: 07/01/00
- Next message: Sylwester Lachiewicz: "Re: [phplib] Calling C functions."
- Previous message: NickM: "Re: [phplib] rewriting urls"
- In reply to: Ramy M. Hassan: "[phplib] Calling C functions."
- Next in thread: Sylwester Lachiewicz: "Re: [phplib] Calling C functions."
- Reply: Sylwester Lachiewicz: "Re: [phplib] Calling C functions."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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.
-- Adam Thompson, MCNE, MCSE, CWT, A+ Vice-President / Chief Technology Officer, Commerce Design Inc. <athompso <email protected>> tel: (204) 942-1648, fax: (204) 989-8080, cell: (204) 782-6198--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Sylwester Lachiewicz: "Re: [phplib] Calling C functions."
- Previous message: NickM: "Re: [phplib] rewriting urls"
- In reply to: Ramy M. Hassan: "[phplib] Calling C functions."
- Next in thread: Sylwester Lachiewicz: "Re: [phplib] Calling C functions."
- Reply: Sylwester Lachiewicz: "Re: [phplib] Calling C functions."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

