Do you need to install PHP GD Extension? Don't worry I got you. In this post, I will share with you how to install PHP GD Extension in your windows. This extension is important if you have the functionality to create and manipulate images in PHP. Kindly follow the simple steps below. Show
First, check if
Second, if
Third, then if the above is already checked then open the "php.ini" file to your editor which is can be found in this directory "C:\xampp\php\" then search inside the "php.ini" file.
Fourth, once you found the "extension=gd2" then if you see like this ";extension=gd2" this is commented that's why GD extension is not enabled. Now we will enable this by removing the ";" (comma).
NOTE: If you can't found the "extension=gd2" then you must add this line under "Dynamic Extensions" inside the "php.ini" file. Just see the following file below:
Fifth, now let's restart your web server.
Once your server is already restarted then let's check and confirm if the GD is already enabled to your web server. Now create a PHP file then name it as you want then add this code. Then run it. Then search GD Support and you will see the GD configuration. Then that's it you have successfully installed the GD Extension. Extensible Markup Language (XML) is a markup language similar to HTML, but the difference between HTML and XML is HTML has predefined tags but in XML we can create our own tags. The format of XML is standardized, if we share or transmit the XML over other systems and platform the receiver still will be able to parse the data due to the standardized XML syntax. XHTML, MathML, SVG, XUL, XBL, RSS, RDF, etc are some languages based on XML. The php-xml package is a dependency package and it depends on the default version of PHP in Ubuntu. This package contains different types of modules for PHP like DOM, WDDX, XML, SimpleXML, and XSL modules. Installation of php-xml in UbuntuStep 1: Verify the installation of php-xml on ubuntu. Before installing php-xml in Ubuntu first we check it is already present in the system or not. So open terminal on your ubuntu system and run the following command PHP is a general-purpose server scripting language. It is a powerful and important tool for developing dynamic and interactive Web pages. It is widely used, free, fast, flexible, and pragmatic. After installing PHP and a web server on Windows, extensions are also needed because they provide added functionality. PHP with extensions is the best combination for the developers to develop more dynamic and interactive web pages or applications. Extensions can be chosen when PHP starts by modifying your php.ini. There are so many extensions are built into the Windows version of PHP. To load more extensions you require .dll files in your system. An extension directive or extra DLL does not require loading these extensions. There are many ways to install extensions, the following is one of the ways to install php extensions on Windows. Prerequisites: Web server(e.g. Apache, XAMPP). Verifying the extension is installed or notTo verify the extension is installed or not you have to follow the following step: Step 1: Create a new file in the root directory with an extension.php like findingexten.php. In this file write the following code:
Step 2: Run this file in any browser and you will see the given extension is installed or not. Installing PHP Extensions on WindowsTo install PHP extension we need to follow the following steps: Step 1: Click on the Config button then select the php.ini file for your PHP installation, and open it in a text editor. Step 2: Locate the line that specifies the location of the “extension = ” line. Step 3: Look for the extension you want to install and remove the semicolon preceding that line. For example, if you want to install an IMAP extension, remove the semicolon of the following line and save the file. |