PHP

ID #99

What PHP modules are available and how do I load them?

Applies to: Grid System

Each account on the Modwest grid system may have its own PHP configuration file that you can edit to set which PHP modules are automatically loaded when your scripts execute.

In your php.ini file is a section called "Dynamic Extensions". By default, all the extension modules are commented out (by having a semicolon appear at the beginning of the line) except the MySQL module called mysql.so. To enable a particular module for yourself, just find the line in php.ini that lists the module you want to use and uncomment it by removing the semicolon at the beginning of the line. For best PHP performance, you should only enable the extensions your website requires.

You can also use the dl() function to dynamically load the extension you want at runtime instead of editing your php.ini file. That will make it so that you only load the module on the pages where you need it, allowing PHP to run faster on the pages that do not need it.

To see which PHP extensions are available, please visit our phpinfo() page.


Last update: 2010-09-27 15:22
Author: FAQ Admin
Revision: 1.2

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 1.89 (9 Votes)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ

Comment of Anonymous:
For wddx_deserialize to work properly (i.e. to work) you must also enable the XML extension along with WDDX.
Added at: 2003-12-18 07:35