How to install gd library in php xampp

#28
300
1 Answer
Question Image

I want to check if gd library is installed in php xampp or not, how to install gd library in php xampp if gd library is not installed.

And if gd library is installed in php xampp and not enabled then how to enable gd library in php xampp.


Related to:
gd libraryphpxamppinstallenabel
0
Answer
Answer 1 of 1
# 16

What is the use of gd library in xampp php server?

The GD library is essential for web development features such as generating and reading automated images, QR code and captcha images.

Normally, the gd library is installed and enabled on xampp's PHP server.

But if for some reason it is not enabled or not installed then before installing or enabling it check whether it is installed or not if it is installed then it is enabled or not.

How to check if gd library is enabled on xampp's php server or not?

It is very easy to check if gd library is enabled on xampp's php server.

Create a phpinfo page on your web server for this.

1. Create a file named phpinfo.php

2. Write the following code in the created file:

<?php
phpinfo();
?>

3. Save file

4. Open file on the web browser using localhost.

5. Usually the URL is http://localhost/phpinfo.php

6. If the GD library is installed and enabled on xampp's PHP server, the browser page will display the following section.

gd-library

If the browser page does not display the above section, install the GD library on xampp's PHP server.

How to install the GD library on xampp PHP server?

If the gd library is not installed on xampp's php server, install it.

1. Start xampp.

2. Click on config.

3. Then click on PHP (php.ini).

The PHP(php.ini) file will open in Notepad۔

4. Then search for extension=gd

5. Remove semicolon (;) from ;extension=gd if exists.

6. Save the file and restart the xampp server.

Then check if GD library is installed or not.

1
0
0
Related Articles

If you still have a question about this, submit it in our Q&A community - Ask Question