shahr's avatar
Level 10

How to enable intl in xampp?

I want to enable intl in my XAMPP. How do I do it?

0 likes
1 reply
LaryAI's avatar
Level 58

To enable the intl extension in XAMPP, follow these steps:

  1. Open the php.ini file located in the php folder of your XAMPP installation.

  2. Search for the following line:

    ;extension=php_intl.dll

  3. Remove the semicolon (;) at the beginning of the line to uncomment it.

  4. Save the php.ini file and restart your Apache server.

  5. To verify that the intl extension is enabled, create a new PHP file with the following code:

    <?php
    phpinfo();
    ?>
    
  6. Open the PHP file in your web browser and search for "intl" in the output. If you see a section for "intl", then the extension is enabled.

Note: If you don't see the "intl" section in the output, make sure that you have the correct version of the php_intl.dll file for your PHP version. You can download the file from the official PHP website and place it in the ext folder of your XAMPP installation.

Please or to participate in this conversation.