note 89038 added to function.dl
| From: | CLIworkaround at osu1 dot php dot net | Date: | Wed, 18 Feb 2009 23:18:57 +0000 |
| Subject: | note 89038 added to function.dl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150832@lists.php.net to get a copy of this message | ||
NOTE: This only works using the CLI
If you need to use dl() with the CLI, but you get this warning:
"PHP Warning: dl(): Dynamically loaded extensions aren't enabled"
Then the 'enable_dl' setting in the php.ini needs to be set to 'On' - the
set_ini() function does not work with this INI option.
If, however, you do not wish (or don't have access) to alter the system php.ini, then you can
do the following:
<?php
if ( !ini_get('enable_dl') ) {
exec("php -d enable_dl=On $argv[0]");
exit;
}
?>
This simply calls itself and defines the enable_dl INI entry on the command line so you dont have to
start the script with options in the first place (or use another script to call it.)
----
Server IP: 209.41.74.194
Probable Submitter: 137.65.120.10
----
Manual Page -- http://www.php.net/manual/en/function.dl.php
Edit -- https://master.php.net/note/edit/89038
Del: integrated -- https://master.php.net/note/delete/89038/integrated
Del: useless -- https://master.php.net/note/delete/89038/useless
Del: bad code -- https://master.php.net/note/delete/89038/bad+code
Del: spam -- https://master.php.net/note/delete/89038/spam
Del: non-english -- https://master.php.net/note/delete/89038/non-english
Del: in docs -- https://master.php.net/note/delete/89038/in+docs
Del: other reasons-- https://master.php.net/note/delete/89038
Reject -- https://master.php.net/note/reject/89038
Search -- https://master.php.net/manage/user-notes.php