php
Highlight text for search results in PHP
Useful code to highlight text occurences in search results or in a text. How to highlight text in a string…
How to add rel=”nofollow” to links with preg_replace()
Adding rel="nofollow" to external link is a good SEO practice.
Limit the number of categories for posts in WordPress
CHOOSE ONLY ONE CATEGORY WORDPRESS If you need to limit the number of categories used by the authors of your…
Reordering rows records on a mysql table with PHP
This PHP function lets you reorder records on a table when you have a field used for save the position.…
Scraping content with PHP as if it was jQuery
Building a spider or a bot needs some knowledge of regular expressions, you must know and use preg_match or preg_match_all…
Embedding images in HTML or CSS with PHP
This small function returns an encoded string to embed images, inline, inside your html/css code and reduce the number of…
Block junk emails, spammers and temporary emails
If you need an Email Validator Function, consider this version that includes also the check against common temporary mail services…
Get instagram data without official api in PHP
Instagram has an official API to interact with its database of images and users. If you have enough time to…
Push notifications from php to Android devices with Minibots Class
More than two years ago I wrote a post about sending push notifications from php to an iOS app called…