WordPress runs on PHP, in order a WordPress developer, it’s necessary to grasp the PHP features enabled on the server that hosts your website(s).
Do you’ll want to arrange a plugin or configure an software on a WordPress website and are questioning if a sure PHP perform or library is enabled in your server (e.g. cURL)?
On this tutorial, we’ll present you a fast and simple strategy to discover enabled PHP features in your server utilizing the phpinfo() perform in WordPress. We additionally present a complete glossary of those PHP features for reference, and that can assist you higher perceive the backend of your WordPress websites.
This fast tutorial covers the next:
What’s phpinfo()?
How you can Discover Enabled PHP Features On Your Server Utilizing phpinfo()
PHP Features Glossary
What’s phpinfo()?
The phpinfo() perform is a built-in PHP perform that gives an extended record of detailed details about the PHP set up and configuration settings in your server, together with all of the loaded extensions.
When phpinfo() is named and executed, it generates a complete HTML web page that shows numerous facets of the PHP surroundings, together with PHP model, extensions, directives, surroundings variables, and extra.
The phpinfo() perform outputs info in a tabular format, making it simple to navigate and perceive the PHP configuration. This information permits you to leverage the out there features in your internet hosting surroundings and optimize your WordPress improvement course of.
The knowledge displayed by phpinfo() could be categorized into completely different sections that present particular particulars a few explicit side of the PHP surroundings.
Some widespread info you could find utilizing phpinfo() contains:
1. PHP model: The model of PHP working on the server.
2. Configuration settings: Varied settings and directives outlined within the PHP configuration file (php.ini).
3. Extensions: A listing of loaded PHP extensions and their configurations.
4. Atmosphere variables: Server surroundings variables and their values.
5. PHP variables: Details about predefined PHP variables, reminiscent of `$_SERVER`, `$_GET`, `$_POST`, and many others.
6. HTTP headers: HTTP request and response headers.
For an inventory of all PHP features enabled in your server, see the tutorial beneath.
Notes:
Use phpinfo() with warning. Whereas it supplies useful info for improvement and troubleshooting functions, it shouldn’t be left accessible on a manufacturing server. After acquiring the required info, we advocate eradicating or commenting out the phpinfo() perform name for safety functions.
When you solely must know which model of PHP your server is at present working, you may skip the tutorial beneath and easily go to the Internet hosting > Overview tab in The Hub.
Test which model of PHP your server is working from The Hub
How you can Discover Enabled PHP Features On Your Server Utilizing phpinfo()
By following the steps outlined on this tutorial, you’ll learn to simply retrieve an inventory of data displaying all of the enabled PHP features and extensions in your server.
For this tutorial, we’ll present you the way to entry the record of PHP features for a WordPress website arrange on WPMU DEV internet hosting. Notice that completely different internet hosting environments could use completely different instruments and strategies to show this info. Attain out to your internet hosting help you probably have any questions or need assistance.
Step 1: Entry your WordPress website’s recordsdata
To start, you want to have the ability to entry the WordPress website’s recordsdata saved in your server. You are able to do this both through FTP or utilizing our File Supervisor device.
Step 2: Create a PHP file
Subsequent, create a PHP file utilizing a textual content editor and add the phpinfo() perform proven beneath:
<?php
phpinfo();
You may identify this PHP file something you want. Within the instance beneath, we’ve named the file ‘data.php’ (notice: keep away from utilizing an present filename discovered on the basis folder of your WordPress set up to forestall overwriting the unique file).
Create a PHP file to name the phpinfo() perform.
Save your PHP file and shut your textual content editor.
Step 3: Add the file to your server
Find the basis listing of your WordPress set up, the place the primary recordsdata like wp-config.php and index.php are positioned, and add your file to this folder.
As talked about earlier, you are able to do this simply utilizing our File Supervisor device.
Add the file to the WordPress set up root listing.
Step 4: Entry the phpinfo() output
Open your WordPress website in an online browser and enter the URL of the uploaded PHP file to generate a PHP perform report.
You must see the PHP info displayed. The output will include detailed details about the PHP configuration, together with all enabled features in your server.
Step 5: Find the enabled PHP features
Scroll down the phpinfo() output to discover a particular perform. Usually, you can find an inventory of all enabled PHP features together with their respective settings and configurations within the part labeled “Core.”
That’s all there’s to it!
Check with the Glossary part beneath if you’ll want to search for any of the features listed in your generated PHP perform report .
Glossary of PHP Features
This glossary supplies an inventory of varied PHP features and their functions. Be at liberty to bookmark this web page and use it as a fast reference information to higher perceive the backend of your WordPress websites.
Configuration
This perform offers with organising PHP to work with the Web server and to outline settings inside your PHP scripts.
bcmath – This module permits arbitrary precision arithmetic in PHP.
calendar – This perform of PHP permits conversions between numerous calendar codecs.
cgi-fcgi – Command for PHP when run in CGI or FastCGI mode.
Core
These are primary PHP features and lessons that type the core of the PHP language.
ctype – A library of PHP that checks if the info kind of a variable is a sound character kind.
curl – Used for transferring information with URLs and is the spine of a number of features in PHP.
date – A gaggle of features that allow you to retrieve or format the native or GMT date and time in PHP.
dom – A PHP extension that gives a strong, highly effective DOM (Doc Object Mannequin) XML API.
exif – PHP perform used to work with picture metadata.
FFI – Overseas Operate Interface is an extension that gives a easy strategy to name native features, entry native variables, and create/entry information constructions outlined in C libraries.
fileinfo – A PHP extension that lets you determine a file’s mime kind.
filter – This perform filters information by both validating or sanitizing it which aids in securing a PHP software.
ftp – FTP PHP features assist set up a connection to a distant FTP server, a vital a part of file sharing.
gd – A library used for dynamic picture creation.
gettext – An extension aimed on the internationalization of PHP scripts by offering translation help.
gmp – It is a PHP extension for arbitrary precision arithmetic.
hash – This perform is used to generate a hash worth from a string.
iconv – Gives an interface to the GNU iconv library, which supplies conversion of character units.
igbinary – A substitute for PHP serializer with higher efficiency and smaller measurement.
imagick – A PHP extension that permits working with ImageMagick, a strong software program suite to create, edit, and compose pictures.
imap – This perform supplies an API for speaking to the web mail servers utilizing PHP.
intl – This extension helps to carry out UCA-conformant collation and date/time/quantity/forex formatting in PHP.
json – JSON features in PHP permits for encoding and decoding JSON information.
ldap – LDAP features join, bind and disconnect from an LDAP listing.
libxml – A basis library that gives a set of APIs for manipulating XML, together with parsing XML paperwork and help for different doc varieties like HTML.
mbstring – A non-binary string dealing with extension that gives multibyte particular string features.
mcrypt – Gives quite a lot of encryption features.
memcache – Memcache module supplies useful procedural and object-oriented interface to memcached, high-performance, distributed reminiscence object caching system, generic in nature however supposed to be used in dashing up dynamic net functions by assuaging database load.
memcached – An extension for interfacing with memcached through libmemcached library.
msgpack – Gives an interface to msgpack.org, which is a binary-based environment friendly object serialization library.
mysqli – A database driver used to work together with MySQL databases.
mysqlnd – It’s the MySQL native driver for PHP.
openssl – A strong PHP perform used for producing and verifying digital signatures.
pcre – Gives features for ‘perl-compatible common expressions’.
PDO – PHP Knowledge Objects is a database entry layer offering a uniform technique of entry to a number of databases.
pdo_mysql – A driver that implements the PHP Knowledge Object (PDO) interface to allow entry to MySQL databases.
Phar – An archive format mixed with a runtime library to assist construct and cargo PHP functions bundled right into a single file.
posix – Accessors to the POSIX (Unix) system calls.
readline – Gives an interactive line enhancing capabilities and historical past features.
redis – A PHP extension for interfacing with Redis, a excessive efficiency key-value storage service.
Reflection – A PHP extension, permits inspection and reverse-engineering of PHP packages utilizing a course of known as “reflection”.
session – This perform permits consumer session administration.
shmop – A easy interface for accessing shared reminiscence segments in PHP.
SimpleXML – An extension that simplifies the work of studying XML recordsdata.
cleaning soap – SoapClient is a PHP built-in class offering strategies for sending SOAP requests and receiving SOAP responses from a URL.
sockets – PHP socket features allow you to create and handle community sockets, low-level community communications between servers.
sodium – Sodium is a contemporary, easy-to-use software program library for encryption, decryption, signatures, password hashing and extra.
SPL – The Customary PHP Library (SPL) is a group of interfaces and lessons which can be a part of PHP core.
customary – These are built-in features and lessons supplied by PHP which don’t depend on exterior dependencies or PHP extensions.
sysvmsg – It supplies an interface to System V message queues.
sysvsem – Affords entry to POSIX-style semaphores.
sysvshm – Gives shared reminiscence features.
tokenizer – The tokenizer features present an API that permits changing PHP supply code into an array of tokens.
xml – XML (eXtensible Markup Language) Parser features allow you to parse XML paperwork.
xmlreader – An extension that pulls information in and pushes it again out once more.
xmlrpc – PHP implementation of XML-RPC protocol utilized in exchanging information throughout a community.
xmlwriter – An extension to create XML paperwork utilizing a easy ‘constructor-like’ type.
xsl – XSL is a language for expressing type sheets to remodel XML paperwork into different XML paperwork.
Zend OPcache – An open-source element that improves PHP efficiency by storing pre-compiled script bytecode in shared reminiscence, thereby eradicating the necessity for PHP to load and parse scripts on every request.
zip – PHP zip extension is used to learn, write, and manipulate zip archives.
zlib – Gives entry to zlib compression library.
Further Modules
These are the underlying software program elements or libraries that add numerous functionalities to the PHP scripting language.
Atmosphere
Concerned in organising, configuring, and managing the PHP runtime surroundings.
PHP Variables
These are used to retailer information which could be modified throughout the execution of your script.
DIY or Use Our Help Workforce
Studying PHP will improve your skill to troubleshoot, modify and optimize your WordPress website.
Hopefully, this tutorial will come in useful if you’ll want to do a fast search for of your server’s enabled PHP features. After all, in case your WordPress websites are hosted with WPMU DEV, you may at all times attain out to our 24/7 help crew for knowledgeable help on something WordPress and internet hosting associated, or get instantaneous solutions with our AI-powered assistant.
And relaxation assured, our internet hosting is configured to work with nearly all WordPress plugins, functions, and configurations.
Subscribe to MarketingSolution.
Receive web development discounts & web design tutorials.
Now! Lets GROW Together!