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

Read More...

Software Development

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

[wp_ad_camp_1] 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

Read More...

Software Development

Using Composer from Java Developer’s Perspective

Background Composer is a dependency manager for PHP. It makes your life easy. If you are a Java developer and have used Apache Maven, you’ll find Composer a familiar tool.

Read More...

Software Development

Return class’ Canonical Name in PHP

Background [wp_ad_camp_1] There are times you need to refer to a class by a string representing its fully qualified class name. For example in Laravel 4.2, you may specify a

Read More...

Software Development

Constructors in PHP 5+

This article demonstrates how constructors work in PHP. It will also touch on destructors just briefly. If you’re a Java programmer who has somehow become bored with anything Java and wanted to explore PHP, the first thing you need to realize is OOP in PHP is slightly different. Take for instance, constructors.

Read More...

Software Development

How to Read and Write XML Documents using PHP DOM Extension

Background With XML Parser, you use can only read XML. To write and otherwise manipulate an XML document, you can use PHP DOM Extension. DOM stands for Document Object Model

Read More...

Software Development

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.

Read More...

Software Development

How to use phpfastcache to Cache Data to Files

Background [wp_ad_camp_5] Most of the PHP Frameworks I worked on or experimented with have their own ways of caching things to reduce calls to other systems (e.g., RDBMS) or interfaces

Read More...

Software Development

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

Background [wp_ad_camp_5] 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

Read More...

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

Read More...