A possible computer glitch causes hashcode issue on COMELEC’s Transparency Server

After reading a blog post from thinkingpinoy.net about the unexplained hashcode mismatched of data files uploaded to COMELEC’s Transparency Server, I kept on thinking the other possible reasons to explain it. I wanted to give a shot at figuring out… Continue Reading


How to read XML Document using the XML Parser extension in PHP

With XML Parser, you use callback functions to deal with specific events such as when the start or end of an XML element is encountered. These functions are registered using API functions made available for the XML Parser extension and are triggered or executed when a specific event is encountered. Also, you can only read XML with this extension. Continue Reading


How to fix “Warning: Invalid argument supplied for foreach()” in PHP

Background If you’re creating an application from ground up, you may already have coded or even designed the core components to check for and avoid non-traversable parameters in some methods or functions that use these variables in foreach statements within… Continue Reading


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. 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

Continue Reading