On 4/28/07, Richard Lynch <ceo@xxxxxxxxx> wrote:
On Fri, April 27, 2007 5:49 pm, Tijnema ! wrote: >> Also, I think dl() is going away in PHP 6, so you may want to >> re-think >> this from the get-go... > > Yes, if seen it is deprecated, but how could somebody include dynamic > library without editing php.ini? I was a little bit shocked when i > read i should use php.ini variable instead. I never used it, but when > i wanted to, i would only to have it loaded in that script, and not > all scripts. I also will miss 'dl' big-time, as I sometimes load in obscure libraries that my webhost does not provide, with their permission to do so, and with the understanding that if the libs cause problems, I have to be ready to live without them. There was a thread recently on Internals about possibly not killing this feature, but I don't think it had much support. The guys making the decisions don't use shared hosts, for the most part, and so few people need 'dl, so they don't feel any pressing need for 'dl' :-( Alas, it's something that has no user-land work-around, really... Though I guess you could use PHP to exec CLI PHP with a custom php.ini to then do whatever it is you wanted to do, passing all the data back and forth from web php to cli php... Ugh.
You have exactly the same problem as i have. My shared hosting has safe_mode off en dl on, so i could load them :) But i don't have access to write to the php.ini file. Maybe we should create such workaround as you provided? Some script that uses PHP CLI to load dynamic objects. That would be useful for people that use shared hosting, like you and me :) Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php