Re: Creating my own External Module for PHP
| From: | Leon Mergen | Date: | Tue, 24 Dec 2002 19:54:49 +0000 |
| Subject: | Re: Creating my own External Module for PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129309@lists.php.net to get a copy of this message | ||
Hey! That worked!
Thanks Rasmus!
Grtz,
Leon Mergen
"Rasmus Lerdorf" <rasmus@php.net> schreef in bericht
news:Pine.LNX.4.44.0212240931180.22834-100000@www.lerdorf.com...
> Just run phpize in your directory and then do a ./configure && make
> If your config.m4 was correct you should now have a modules/foo.so in your
> dir.
>
> -Rasmus
>
> On Tue, 24 Dec 2002, Leon Mergen wrote:
>
> > Hello,
> >
> > I have a little question to which I hope to find an anwser in here.
> > Currently, I have a big script which receives approx 1.5 million hits
every
> > day. Since this script does some common calculations that underlying
scripts
> > use, I want to rewrite this into C and initially make it an external
module
> > for beta testing and then eventually compile it directly into PHP.
> >
> > Now, I got this really good book, Web Application Development with PHP
by
> > Ratschiller and Gerken. It has a complete chapter devoted to "hacking
the
> > core of PHP" which shows how to create extensions.
> >
> > Now, they describe 2 common ways of hacking the core... making a shared
> > object (which is what I want at this point) , or compiling the extension
> > right into the core. They decribe how to make your extension with
> > ~/ext/ext_skel , but they don't describe which steps to take when you
only
> > want to make a shared object... the only thing they say is "at this
point,
> > you should have a new PHP binary or a .so file" ... but they never gave
any
> > indication how to chose... they just asume you want a new php binary or
sth.
> >
> > Now, can anyone provide me with a few brief description (a few steps)
how to
> > make your own dynamically loadable module in PHP?
> >
> > Thanks in advance.
> >
> > Regards,
> >
> > Leon Mergen
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>