Cara menggunakan php_xml dll extension download

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.

 

First, check if "php_gd2.dll" is already exists in your extension web server directory. If you're using Xampp you will find it here "C:\xampp\php\ext".

 

Second, if "php_gd2.dll" the extension is not yet existing kindly download it here and upload it to your web server extensions directory or here "C:\xampp\php\ext".

 

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).

//change the following line 
;extension=gd2

//to this
extension=gd2

 

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:

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename
;
; For example:
;
;   extension=mysqli
;
; When the extension library to load is not located in the default extension
; directory, You may specify an absolute path to the library file:
;
;   extension=/path/to/extension/mysqli.so
;
; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and
; 'extension='php_<ext>.dll') is supported for legacy reasons and may be
; deprecated in a future PHP major version. So, when it is possible, please
; move to the new ('extension=<ext>) syntax.
;
; Notes for Windows environments :
;
; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+)
;   extension folders as well as the separate PECL DLL download (PHP 5+).
;   Be sure to appropriately set the extension_dir directive.
;

extension=gd2

extension=bz2
extension=curl
;extension=ffi
;extension=ftp
extension=fileinfo

 

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 Ubuntu

Step 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 not

To 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:

<?php

// It will return all the configurations of the server

phpinfo();

?>

Step 2: Run this file in any browser and you will see the given extension is installed or not.

Installing PHP Extensions on Windows

To 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. 

Cara menggunakan php_xml dll extension download

Step 2: Locate the line that specifies the location of the “extension = ” line. 

Cara menggunakan php_xml dll extension download

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.