Skip to content

Tag: php

Destroy cookie when browser window closes PHP

I have created a popup in WordPress that will open when visitor IP is from Australia. The popup will show up on page load. I want to make it not show until the browser screen is closed. For this, I used the cookie. I set the cookie when the close button is clicked and creating the cookie in PHP using

extract 7z extension – PHP

I am wondering if PHP can extract the *.7z extension. I have searched a lot about it and I all what I see is *.zip, *.rar etc… but not 7z. Here is the code that I have tried. ZipArchive(); is not supporting 7z. I have many 7z files and I am looking to let PHP unpack them to get information