PHP: create zip from directory recursively

PHP has standard zip class "ZipArchive". Zip files cab be created using that class, but when you need to add inner directories and files you need to use recursive approach. PHP provides RecursiveDirectoryIterator to recursively traverse directories and get inner directories and files. We are going to use RecursiveDirectoryIterator to traverse whole directory recursively and … Continue reading PHP: create zip from directory recursively


Linux find text in files

That is why I love linux. Linux gives you fine grain control over your system with easy but very useful commands, searching text in files with so much control over output is not such an easy task in other operating systems but in linux its like a butter cake. To find a text in all … Continue reading Linux find text in files