Click to See Complete Forum and Search --> : Own C Library


Anon
09-26-2000, 03:32 PM
Hallo together,

i wrote an own c Lib and want to use
it in php4 like mysql.so

I created a shared Library but php
says, that Lib type is wrong.

I read that i need to transform this
lib to work as php lib. Where can
i get a Documentation what to do to make
my lib work as extension=lib.so?

Thanks,

Marco

Anon
09-27-2000, 04:54 AM
Try this:

http://www.linuxguruz.org/z.php?id=316

Nice tutorial... but only for php 3. You can read about differences in php 4 in apidoc-zend.txt in your php4 distribution....

Anon
09-27-2000, 06:13 AM
Thanks peewee for your Reply.

The Documentation is really good.
But I get troubles to realize the
mentioned way.

There is no Header File like phpdl.h
in php4.

The apidoc.txt is not very well to understand.

Any ideas how what to include or what
to change?

Thanks, Marco

Anon
09-27-2000, 07:49 AM
hmmm try this ones:

README.EXT_SKEL
README.SELF-CONTAINED-EXTENSIONS

Both in php 4 distribution