Configuration and Modules

This chapter provides tutorial examples and notes on PHP configuration and loading modules. Topics include viewing and changing configuration settings; php.ini and additional .ini files; phpinfo() function and 'php -i' command; loading PHP modules; module files in extension_dir directory.

Manage Runtime Configuration Directives

"php -i" - Display Configuration Information

php.ini - Configuration Directive File

Additional .ini Configuration Files

Load PHP Extensions/Modules

extension_dir - Module Library Location

"php -m" - Display Loaded Modules

get_extension_funcs() - Get Module Functions

dl() - Load Module Dynamically

Takeaways:

Table of Contents

 About This Book

 Introduction and Installation of PHP

 Managing PHP Environment and Modules on macOS

 Managing PHP Environment and Modules on CentOS

Configuration and Modules

 cURL Module - Client for URL

 DOM Module - Parsing HTML Documents

 GD Module - Manipulating Images and Pictures

 MySQLi Module - Accessing MySQL Server

 OpenSSL Module - Cryptography and SSL/TLS Toolkit

 PCRE Module - Perl Compatible Regular Expressions

 SOAP Module - Creating and Calling Web Services

 SOAP Module - Server Functions and Examples

 Zip Module - Managing ZIP Archive Files

 References

 Index

 Full Version in PDF/EPUB