If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Member #
    I recently installed PHP version 5.0 BETA2, to test it out.

    I was surprised when non of the mysql functions worked. That is, they all generated an error message saying "call to undefined function".
    It turned out the mysql-library wasn't integrated, even though it was supposed to be.
    (By uncommenting the php_mysql.dll, everything worked as normal. Guess this will be fixed before final release.)

    The way I found out the whole functionlist was missing, was by running the below provided script. The script uses two functions you might find useful.

    The first get_loaded_extensions(), returns an array of all the extension sets currently available in your PHP installation.
    The second get_extension_funcs(), takes an extension set as its argument and returns an array containing all legal functions in that particular extension set.

    The well known phpinfo() call, lists your PHP and Zend version, a list of settings in your php.ini file, plus an abbreviated list of installed extensions.

    The above mentioned functions however, give you complete list of installed and available libraries, with all associated functions listed. This is quite nice as a reference list as well, if you forget how a particular function is written.

    The script:
    PHP Code:
    echo "<i>Functions and extensions supported in this install:  </i><br /><hr />";
    //loads the extensions array

    //loops through all extensions in the array by a "key => value" call
    foreach($extensions as $ext)
    "<h3>$ext</h3> <br />";
    "<ul />";
    //loads all subfunctions into an array

    $functions as $func)
    Hopefully some of you might find this useful.
    S. Rosland


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 05:01 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: