To enable the `zip` extension in XAMPP, you'll need to modify the `php.ini` file. Here are the steps to do it:
### Steps:
1. **Open XAMPP Control Panel**:
- Start XAMPP and open the control panel.
2. **Open the `php.ini` File**:
- In the XAMPP control panel, find the **Apache** row.
- Click the **Config** button next to Apache and select **PHP (php.ini)**. This will open the `php.ini` configuration file in a text editor.
3. **Enable the `zip` Extension**:
- In the `php.ini` file, search for the line that contains `;extension=zip`.
- Remove the semicolon (`;`) from the beginning of the line to uncomment it, so it looks like:
```ini
extension=zip
```
4. **Save the File**:
- After making the changes, save the `php.ini` file and close the editor.
5. **Restart Apache**:
- Go back to the XAMPP control panel and click **Stop** for Apache, then click **Start** again to restart the server.
6. **Verify the Change**:
- You can check if the extension is enabled by creating a simple PHP file (e.g., `info.php`) with the following content:
```php
<?php
phpinfo();
?>
```
- Open this file in your browser (`
http://localhost/info.php`), and search for "zip" to verify that the `zip` extension is now enabled.
This should activate the `zip` extension in XAMPP.