CSV (Comma Separated Values) is one of the most popular methods for transferring tabular data between applications. Imagine you have an eCommerce website with hundreds of products and thousands of order history. And then, for safety purposes, you want to take a backup or you have to migrate to another domain – which justifies your…
Category: PHP Code Snippets
Create and Download a zip file using PHP
Recently we were working on creating a WordPress plugin boilerplate, an online tool that features to create a WordPress plugin skeleton and download it in zip format. For achieving this we had to write a script that creates a zip file containing different files, folders, and subfolders, and then pushes it to browser for user…