TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   dl() - been thrown out of latest PHP version, help! (http://www.talkphp.com/general/1485-dl-been-thrown-out-latest-php-version-help.html)

Sam Granger 11-17-2007 11:36 AM

dl() - been thrown out of latest PHP version, help!
 
Ok, since dl() has been "fixed" in the latest build, what ways are there to get the same functionality as previously was possible?

Looking forward to responces. :)

Haris 11-17-2007 01:01 PM

http://php.net/dl

Quote:

Note: As of PHP 5, the dl() function is deprecated in every SAPI except CLI. Use Extension Loading Directives method instead.
http://www.php.net/manual/en/ini.core.php#ini.extension

Read the notes always, nuff' said!

Sam Granger 11-17-2007 01:07 PM

But doesnt that require you adding the file you want to load to php.ini?

Haris 11-17-2007 01:22 PM

Quote:

Originally Posted by Sam Granger (Post 4308)
But doesnt that require you adding the file you want to load to php.ini?

Yes, it does. :)

If you have a host which allows you to edit php.ini paramters, you can modify php.ini parameters through .htaccess.

http://www.karakas-online.de/EN-Book...arameters.html

Sam Granger 11-17-2007 01:24 PM

Quote:

Originally Posted by Haris (Post 4311)
Yes, it does. :)

If you have a host which allows you to edit php.ini paramters, you can modify php.ini parameters through .htaccess.

http://www.karakas-online.de/EN-Book...arameters.html

Well, thats the problem you see :(

Is it impossible to get dl() to work without htaccess or editting php.ini? Any methods around it?

Haris 11-17-2007 01:29 PM

Quote:

Originally Posted by Sam Granger (Post 4314)
Well, thats the problem you see :(

Is it impossible to get dl() to work without htaccess or editting php.ini? Any methods around it?

Can you explain what are you trying to do? :)

Sam Granger 11-17-2007 01:36 PM

Load a loader - however, i do not have access to php.ini nor can I go down the .htaccess rule.

My script cannot work without this loader. :(

Salathe 11-17-2007 02:25 PM

Depending on your host's configuration, you may be able to place a php.ini file in your web root folder with your desired settings. This ini should (again, if your host allows) overrule the settings in the main ini file. At least, that's how my shared hosting provider works.

You don't need to copy the entire ini file, just the bits you need. E.g.;
Code:

extension = my_custom_extension.so


All times are GMT. The time now is 11:35 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0