I always recompile PHP when I need a new module, but searching the
mailling list archives I found the following post by Rasmus that says
dl() in *nix is possible. Well, if Rasmus says it can be done, he is
propably true:-)
<old_post>
Subject: Re: [PHP] Re: The future of PHP - accessory libraries
Date: Tue, 28 Aug 2001 11:01:34 -0700 (PDT)
From: Rasmus Lerdorf <[EMAIL PROTECTED]>
To: Michael Kimsal <[EMAIL PROTECTED]>
CC: PHP General <[EMAIL PROTECTED]>
> That's not allowing me to simply dl() an SO file, because I don't have the
> SO file to start with - that's what I was trying to get at. If I have
> to reconfigure
> everything, there's not much point, I don't think. Unless I'm missing
> something
> obvious. I'd like to be able to simply have an SO file I can dl()
> without recompiling.
> Or are you saying that that configure statement WILL create an SO file
> that can
> be dl()ed later, without recompiling PHP?
Exactly. When you do ./configure --with-foo=shared; make
then modules/foo.so will appear magically and you can dl() that or load
it
using "extension=foo.so" in your php.ini. You don't have to recompile
PHP.
-Rasmus
</oldPost>
-Stathis
Prachait Saxena wrote:
>
> Hello
> But i would like to ues that modules that are not complied wit PHP
>
> i mean dynamic inclusion of modules... Is that possible ?
>
> Prachait
>
> ----- Original Message -----
> From: Rouvas Stathis <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: Prachait Saxena <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, March 29, 2002 1:43 AM
> Subject: Re: [PHP] where i get .so [dll] file of linux ?
>
> >
> > In Linux you don't use dl(). Instead, you compile PHP with the modules
> > you need and they are there when you call them.
> >
> > -Stathis.
> >
>
> > Prachait Saxena wrote:
> > >
> > > Hello
> > >
> > > I would like to Know, where Site or Link i can get complied .so [dll]
> files.
> > > of linux
> > >
> > > as i have php_sockets.dll which works very fine in Windows enviroment.
> but
> > > on linux....
> > >
> > > Can you suggest any other option for this.
> > >
> > > I am using dl("php_sockets.dll"); while writing my code for windows and
> > > what to same for Linux
> > >
> > > --
> > > Bye, and Have a nice day.
> > >
> > > Prachait Saxena
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php