Software Development

How to Zip a file or the contents of a Directory in PHP

Background This article demonstrates how to archive the contents of a directory in PHP using ZipArchive class. [wp_ad_camp_1] Software Requirements Windows 7 Professional SP1 PHP 5.5.9 / Zend Engine v2.5.0 NetBeans IDE 8.0.1 Zip a file

Zip a Directory

Software Development

How to read files line by line in PHP

Background [wp_ad_camp_1] PHP is not as bad as other people would think. Sometimes it is easier to do things in PHP than in, say, Java. Consider reading a text file line by line and parsing each pipe-delimited line. Hardware Environment

PHP, Software Development

Configure Netbeans to Debug PHP Web Applications

Figuring out how to configure NetBeans, xdebug, PHP, and Apache to enable debugging did not come by easily despite the myriad references available online. However, most (if not all) of them are outdated, and inaccurate. As a result, they tend to obscure a rather simple configuration or how-to.

PHP, Software Development

WordPress Plugin And Composer

This post quickly shows the basic usage of WordPress Plugin and Composer. We are to use a PHP library within our own already existing WordPress Plugin. Composer We can use Composer with a WordPress plugin. The composer is a dependency