Re: [PHP] compiling dynamic extensions without root access
On Fri, May 6, 2005 5:37 am, Dan Rossi said: > I was going to ask, without the need of requesting our admins to > recompile php all the time is there a way in the meantime to compile > extensions and load them dynamically without the need for root access > to some of the php libraries ? I have always compiled in personally so > have never tried it. But there a few things i'd like which would take > forever to get requested. Let me know. Your admin may also have set up permissions so that you can't dl() the module you compile... You may find it easier to just install Apache/PHP/MySQL on your own desktop or laptop and play with all the fun extensions there. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] compiling dynamic extensions without root access
On 08/05/2005, at 1:03 AM, Rory Browne wrote: I believe(although I stand to be corrected, that there is a threading MLM on apache 2 - this would rule out dl() AFAIK We're not using Apache2 yet coz of the thread issue with php however i am setting up a prefork setup for development. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] compiling dynamic extensions without root access
On 07/05/2005, at 3:16 AM, Rory Browne wrote: It depends: What webserver are you using? PHP/Apache will let you load extensions using .htaccess, which can be your own extensions, located in a directory that you have write access to. I've never tried it but something like php_extension_dir /home/yourname/php_extensions php_extension your_php_extension.so should do the trick. If you don't mind modding your php code, to take account of the fact that these extensions aren't available by default, you can create a function to load dynamic modules, using the extension_loaded() and dl() functions (see the examples on www.php.net/dl ). Bare in mind that this will not run in certain webservers, noteably Zeus, and IIS. Its apache 1.3, 2.0 is not a goer until threading support is available unless it is already ? What I was asking is, are we able to run say phpize as a non root user and build a module that can be dynamically loaded ? I wouldnt mind checking out the PHP5 soap extension , but getting an admin to install it will take forever. Lemme know thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] compiling dynamic extensions without root access
> yes you can do if u have compiled apache to support apache dynamic extensions. It doesn't matter how you compile apache. It's how you've configured PHP, and what type of server it's running on, how the server handles multiple clients. Zeus, and IIS don't AFAIK support dl(). I reckon it's safe to assume that you can't use dl() on Apache2 if you use the multithread MLM. > > -- > bala> balachandar muruganantham > blog> lynx http://chandar.blogspot.com > web> http://www.chennaishopping.com > > -- > 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
Re: [PHP] compiling dynamic extensions without root access
On 5/6/05, Dan Rossi <[EMAIL PROTECTED]> wrote: > I was going to ask, without the need of requesting our admins to > recompile php all the time is there a way in the meantime to compile > extensions and load them dynamically without the need for root access > to some of the php libraries ? I have always compiled in personally so > have never tried it. But there a few things i'd like which would take > forever to get requested. Let me know. yes you can do if u have compiled apache to support apache dynamic extensions. -- bala> balachandar muruganantham blog> lynx http://chandar.blogspot.com web> http://www.chennaishopping.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] compiling dynamic extensions without root access
On 5/6/05, Dan Rossi <[EMAIL PROTECTED]> wrote: > is there a way in the meantime to compile > extensions and load them dynamically without the need for root access > to some of the php libraries ? You can compile/install extensions anywhere and load them with dl(). -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php