PHP – WordPress – Follow me on Twitter Short Code

This following PHP example helps you to add a short code in to your WordPress post, there's a person can follow you on twitter. Eg. Follow me on Twitter Code Example:

Read more »

PHP – Credit Card Validation

This following PHP example helps you to validate the credit card number with its financial services corporation. Code Example:

Read more »

PHP – WordPress – Add a Read More Link

This following PHP example helps you to Add a read more link in WordPress. Code Example:

Read more »

PHP – Download a File from the FTP Server and Save it in a Local File

This following PHP example helps you to download a file from the FTP server and save it to your loacal server. Code Example:

Read more »

PHP Email Validator – Email MX DNS Record Check

Validating an email address is one of the hardest feats on the web. A valid email can be marketing gold, but an invalid email address is dead weight. Not only does it require a CPU-taxing PHP regular expression ("/^+"."@" . "*". "(\.+)*"."\.({2,6})$/"), the regular expression can be useless even...

Read more »

PHP – WordPress – Disable Sidebars, Widgets on Page Template

The following php example helps you disable (remove) some sidebars, or widgets at all in WordPress on page template with suffix in the template name (*-no-widgets.php, *-no-sidebars.php)p. Code Example:

Read more »

PHP – Information About a User Device

The following php example helps you get the information about the device, either it's tablet, mobile or desktop. Code Example:

Read more »

PHP – Download File With a Speed Limit

This PHP example helps to allows you set a limitation for download rate of the file that visitors download from your site. Code Example:

Read more »

PHP – Information About a Particular Calendar

This function returns information about a particular calendar. Calendar information is returned as an array containing the elements calname, calsymbol, month, abbrevmonth and maxdaysinmonth. The names of the different calendars which can be used as calendar are as follows: 0 or CAL_GREGORIAN - Gregorian Calendar 1 or CAL_JULIAN -...

Read more »

PHP – Calculate the Product of Values in an Array

This function returns the product(multiply) of values in an array as an integer or float. Code Example:

Read more »

PHP – Gets File Modification Time

This function returns the time when the content of the file was changed last time. Code Example:

Read more »

PHP – Read Entire gz-file into an Array

This function is identical to readgzfile(), except that it returns the file in an array. Code Example:

Read more »