Active PHP functions

vampire6t9

New Member
Messages
2
Reaction score
0
Points
0
Is there any way to get a list of all the PHP functions usable on the server? I know not all functions are enabled by default and I would like to know which ones are available to me. I tried the phpinfo(); method, but it has been disabled on the server for security reasons. Thanks.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
There may be one. That's on the list of suggestions for the new PHP system.

Not sure what's going to happen with that. Is there a specific function you're looking for?
 

vampire6t9

New Member
Messages
2
Reaction score
0
Points
0
I was wondering if the 'zip' and 'libxml' functions were installed and enabled.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Code:
$arr = get_defined_functions();

// Returns an array of all defined functions
// two element array, each an array
// internal functions and user defined


$stuff = $arr['internal'] ;

// grab the internal function array

$where = array_search(  'sprintf', $stuff  );

// see if it is in the array, returns the index (about 3400 functions 
//                       if you want to print the array out)


// or just

function_exists( 'sprintf' ) ; 

// Return TRUE if the given function has been defined

Hope this helps
 
Top