I have a question:
Is there a way to find wath functions are inactive in a PHP configuration ?
Can anyoane help me with a script that list what functions are inactive in PHP ?
Thanks in advance.
Inactive funcions
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
The manual will tell you whether a particular function is available in your version of PHP. You can also see all the available functions - [php_man]get_defined_functions[/php_man]() - or test to see whether one function in particular is available - [php_man]function_exists[/php_man](). If you are looking for a function that lists all non-defined functions (is this what you mean by inactive?) then that would be impossible as the list is infinite.
Mac
Mac
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Most of what governs which functions are available to you are which version of PHP you are using and which external modules are enabled. Then it's a case of using the manual to work out which functions you can use and which you can't - of course you can always print out the output of get_defined_functions() - if a function isn't on that list you can't use it. To check the extensions available use [php_man]get_loaded_extensions[/php_man]().
Mac
Mac