Accessing WordPress data using the new REST api

WordPress is without doubt the most used CMS system around. Various sources peg the usage around 20-30% of all web sites. Whatever the correct figure, there is no doubt that the collective content of WordPress sites is enormously large. However almost all content is virtually held in independent WordPress sites with no way to easily access a sites content programmatically. Of course we have RSS feeds, but it is severely restricted and has a totally different purpose.
(more…)

Read More

PHP 5.5 on Oracle VirtualBox

PHP 5.5 has added a nice support for Generators, which I’ll cover in some other post. I needed to test these new features and add some to old applications. However PHP has dropped support for Windows XP and Windows 2003 starting with PHP 5.5. and I still have a Windows XP machine (along with Ubuntu 14.0 LTS). Although I could install PHP 5.5 in Ubuntu, most of the time I’m using Windows. I decided to go with VirtualBox for installing PHP 5.5, as I have some legacy PHP applications that I want to upgrade to the new version, and VirtualBox makes it easier to switch between operating systems.
(more…)

Read More

Building a Custom WordPress Theme Framework

If you’ve been involved in WordPress theme development project, then you’ll realize that you need to reuse same code across your project. Besides, you might even use the same starter or base theme, when starting a project for developing a theme. Additionally, you might be using a common set of plugins and widgets in your projects. Wouldn’t it be great if you could access all the needed functionality for theme development from a centralized location? This is where WordPress theme frameworks comes in handy.
(more…)

Read More

Adding WordPress like shortcodes to your web applications

One of the cool features of WordPress is its shortcode feature. There may be times one wished to add this capability to your PHP web applications. Recently I found one such library which allows you to add shortcode features to your web apps. The library discussed here implements WordPress style shortcode syntax as a standalone package. Its a small package and so can be easily integrated into you existing applications. Content from editors, databases, etc. can be scanned by the Shortcode Manager and the contents replaced by a custom callback.
(more…)

Read More

A Complete Guide on WordPress FileSystem Permissions and Ownerships

WordPress is a CMS platform that keeps on dictating the trend for all the obvious reasons. The ease with which it lets users achieve higher goals for their site and embed new capabilities to make it stand out, is something that’s difficult to find in any other CMS out there. But, irrespective of its blockbuster features, WordPress can be easily beleaguered with security attacks. Cyber criminals out there can drive ways to leave out rough spots to cripple the legitimacy of your site. As the tools used to hack a website have evolved, security has become a primary concern for most website owners.
(more…)

Read More

5 PaaS solutions to host your NodeJS apps

So, you have put in all your best efforts into building an out-of-the-box Node.js application? If you’re contented with how the app has come up, it’s time to gear up for releasing it for the public. Well, numerous solutions can be chosen for hosting your Node.js application in the most refined manner. Through this post, I’ll be introducing you to five of the most recommended PaaS solutions which have made Node.js app hosting quite simple and efficient.
(more…)

Read More

Create a quick REST API using Slim framework

During a recent client project, I frequently needed to access a remote database table and update the same for certain fields. This was accomplished using phpMyAdmin on the server. However, it was getting tedious and was prone to accidental updates and deletes. Also, a couple of other developers also needed to make changes to certain fields on the remote database from their local server.

This is all a tedious process and prone to errors. One solution was to create a quick REST api wrapper around the remote database, using which developers could update the database table without any risk of corrupting the data and also with the added benefit of updating the table programmatically.
(more…)

Read More