Guide to Using Pre-Installed PHP Libraries on cPanel Hosting
In this article
- 1Introduction
- 2Default PHP Libraries on cPanel Hosting Servers
- 3Using Pre-Installed PHP Libraries
- 4Conclusion
Introduction
cPanel hosting environments come with a variety of PHP libraries pre-installed, making it easier for developers to utilize essential functionalities without additional setup. This guide outlines the default PHP libraries installed on most cPanel servers and provides examples of how to use them in your web applications.
Default PHP Libraries on cPanel Hosting Servers
By default, the following PHP modules are installed on cPanel hosting servers:
- bcmath
- hash
- mime_magic
- Reflection
- wddx
- calendar
- iconv
- mssql
- session
- xml
- ctype
- mysql
- SimpleXML
- xmlreader
- curl
- imap
- mysqli
- soap
- xmlrpc
- date
- ionCube Loader
- openssl
- sockets
- xmlwriter
- dom
- json
- pcre
- SourceGuardian
- xsl
- exif
- libxml
- PDO
- SPL
- zip
- filter
- magickwand
- pdo_mysql
- SQLite
- zlib
- pspell
- tokenizer
- ftp
- mbstring
- pdo_sqlite
- standard
- gd
- mcrypt
- posix
- tidy
- gettext
- mhash
- GMP (GNU Multiple Precision)
Using Pre-Installed PHP Libraries
1. bcmath
BCMath provides arbitrary precision mathematics. It's useful for applications that require high precision calculations.
Usage Example:
Conclusion
The default PHP libraries installed on cPanel hosting servers provide a wide range of functionalities that can be utilized in your web applications. By understanding and leveraging these libraries, you can enhance the capabilities of your projects without the need for additional installations.
For further assistance, you can refer to Domain India's Knowledgebase or submit a support ticket at Domain India's Support.
Was this article helpful?
Your feedback helps us improve our documentation
Still need help? Submit a support ticket