Inactive funcions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
liviu
Forum Newbie
Posts: 16
Joined: Fri Jul 18, 2003 6:39 pm
Location: Tulcea, Romania

Inactive funcions

Post by liviu »

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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

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
liviu
Forum Newbie
Posts: 16
Joined: Fri Jul 18, 2003 6:39 pm
Location: Tulcea, Romania

Post by liviu »

yes, i'm hosting my site on a free webhosting firm and i have to know what functions are inactive for me...
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

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
Post Reply