note 60246 added to function.dl

From: Date: Sat, 31 Dec 2005 05:37:51 +0000
Subject: note 60246 added to function.dl
Groups: php.notes 
Request: Send a blank email to php-notes+get-101028@lists.php.net to get a copy of this message
just some note to loading modules, they do not have to be executable. some examples below check for this but if an module is not executable is does not mean you cant use it. it just needs to be readable NOT executable. although some modules might need this perhaps for some reason i cannot think of, so here an example, // fails to load mysql although it could be loaded. if(is_executable("mysql.so")){ dl("mysql.so"); } // loads mysql if(is_readable("mysql.so")){ dl("mysql.so"); } watch out with this, as you can see mysql.so would not be loaded and the script would fail. because its checked for executable permissions although these are not needed. ---- Manual Page -- http://www.php.net/manual/en/function.dl.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60246 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60246&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60246&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60246&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60246&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60246&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60246&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60246&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60246&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101028) next »