+ Reply to Thread
Results 1 to 4 of 4

Thread: Active PHP functions

  1. #1
    vampire6t9 is offline x10Hosting Member vampire6t9 is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    2

    Exclamation Active PHP functions

    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.

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Active PHP functions

    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?
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  3. #3
    vampire6t9 is offline x10Hosting Member vampire6t9 is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    2

    Re: Active PHP functions

    I was wondering if the 'zip' and 'libxml' functions were installed and enabled.

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Active PHP functions

    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

+ Reply to Thread

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. Replies: 0
    Last Post: 12-24-2008, 03:59 PM
  3. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers