f



How to create PHP DLL Extentions?

I need to create a DLL Extension. I going to write it in C.

Can you point me to any information on how to write DLL extentions?

I just don't know how the calling conventions are, etc...

Thanks,
JT



0
jtsoft (75)
1/14/2006 12:06:22 AM
comp.lang.php 32646 articles. 0 followers. Post Follow

2 Replies
16177 Views

Similar Articles

[PageSpeed] 59

jt wrote:
> I need to create a DLL Extension. I going to write it in C.
>
> Can you point me to any information on how to write DLL extentions?
>
> I just don't know how the calling conventions are, etc...
>
> Thanks,
> JT

Start out by adding functions to an existing extension. That'll get you
started quicker, as the source code is already set up to correctly
compile. Then it's just a matter of ripping out the other functions and
renaming the thing.

The Zend API section of the PHP manual describes how to allocate
memory, handle variables, and so forth. Between that and reading the
source of an existing extension, you'll figure it out.

0
chernyshevsky (2297)
1/14/2006 6:15:43 AM
jt wrote:
>
> I need to create a DLL Extension. I going to write it in C.
> Can you point me to any information on how to write DLL extentions?

Zend has a two-part tutorial on writing PHP extessions:

http://www.zend.com/php/internals/

Cheers, 
NC

0
nc (1051)
1/14/2006 7:28:06 PM
Reply: