check your PHP version
with 000webhost the host allows you to change your php version with one click. it defaults to the newest. 7.0, after reading installation requirements of 5.4+ I switched the php version on my hosts dashboard to 5.4 and this zip problem was resolved immediately
with 000webhost the host allows you to change your php version with one click. it defaults to the newest. 7.0, after reading installation requirements of 5.4+ I switched the php version on my hosts dashboard to 5.4 and this zip problem was resolved immediately
I am using GoDaddy for hosting and had this problem too. Open up Cpanel and go to 'Select PHP Version." VDo not change version. Look for the "Zip" option in the list and click on the select box next to it to turn it on. Then just save.
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.
### 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.
Who is online
Users browsing this forum: No registered users and 6 guests