Category Archives: PHP



PHP- Great People, Simple Advice Posted by in PHP | 1 Comment

Following is a brief article of tips and advices regarding PHP given by masters of this profession. This article consists of advices shared by Rasmus Lerdorf, Matt Mullenweg and many such notable names who have contributed in making the internet as big as it is today. Continue reading

5 Expert Tips For PHP Beginners Posted by in PHP | 2 Comments

PHP is one of the most popular web development languages and is powering some of the most powerful web sites around us, including Facebook and WordPress. Continue reading

PHP MD5 AND SHA1 Examples Posted by in PHP | Leave a comment

Below are simple examples how to use MD5 and SHA1 algorithm to encrypt a particular string. And provide a list of common encrypted string by using MD5 and SHA1 function. Continue reading

Get WordPress Most Popular Posts By Total Comments Posted by in PHP | Leave a comment

This article shows How to retrieve and display the most popular posts by total comments on your WordPress template. A PHP function below will use the get_results function to run a SQL query to the WordPress posts table to get the top posts with highest comments. Continue reading

WordPress Get Recent Posts And Recent Comments Posted by in PHP | 2 Comments

In this article, I’ll show pieces of PHP script that retrieve and display Recent/Latest Published Posts and Recent/Latest Approved Comments. They’re being used in my current WordPress template and placed in the footer. Continue reading

WordPress Get All Custom Fields Posted by in PHP | Leave a comment

This article shows a piece of PHP code that query all Custom Fields (extra fields or meta data) of a particular post instead of hitting the WordPress database for every custom field. Continue reading

PHP SSH To Remote Server And Execute Command Posted by in PHP | Leave a comment

There is a PHP library called phpseclib that helps to SSH to a remote server and execute command. We can also get the output and display on the screen. Continue reading

Implement Google Captcha (reCAPTCHA) With PHP Posted by in PHP | Leave a comment

Before displaying Google Captcha (reCAPTCHA), you need to Create a reCAPTCHA key by providing a domain name via http://www.google.com/recaptcha/whyrecaptcha then save the Public Key and Private Key somewhere to configure your application. Continue reading

PHP Copy Entire Directory To Another Directory Posted by in PHP | Leave a comment

This is a PHP function that copy an entire specified directory/folder includes its sub directories/folders and files to another folder/directory. Continue reading

PHP Delete File Function Posted by in PHP | Leave a comment

This is a PHP function delete a specified file when it becomes unnecessary such as temporary file, log file, back up file, old file, etc. Continue reading