PHP- Great People, Simple Advice
Posted by
Ellis McGrath 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 →
Tagged: Content Management System, Wordpress
Get WordPress Most Popular Posts By Total Comments
Posted by
Hoan Huynh 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 →
Tagged: comment_count, get_permalink, get_results, setup_postdata, Wordpress
WordPress Get Recent Posts And Recent Comments
Posted by
Hoan Huynh 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 →
Tagged: comment_author_url, get_permalink, get_results, numberposts, strip_tags, Wordpress, wp_get_recent_posts
WordPress Get All Custom Fields
Posted by
Hoan Huynh 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 →
Tagged: Custom Field, postmeta, Wordpress
Implement Google Captcha (reCAPTCHA) With PHP
Posted by
Hoan Huynh 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 →
Tagged: CAPTCHA, Google, reCAPTCHA, recaptcha_challenge_field, recaptcha_check_answer, recaptcha_response_field
PHP Copy Entire Directory To Another Directory
Posted by
Hoan Huynh 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 →
Tagged: dir, is_dir, mkdir
PHP Delete File Function
Posted by
Hoan Huynh 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 →
Tagged: file_exists, is_dir, unlink