It is a good idea to convert all urls into links in your web application like contact form, comment forms, chat application etc. To find and replace all urls with their links we will use php preg_replace function. See below example $text = “Hello Friends my website url is http://99webtools.com”; $text = preg_replace(“~[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]~”,'<a href=”$0″>$0</a>’,$text); echo […]
In previous article we learned how to prevent our blog content from copying by disabling right click on web page. Now in this article i will show you how to disable content selection on web page using jQuery. To disable content selection on web page follow these steps
As website URL field is not mandatory in wordpress comment form but many times spammer use it to get backlinks to their website that results tons of garbage and spam comment. To get rid of spammer simply remove website field from comment form.
WordPress has only two contact fields in users profile that is email and website. That may not be sufficient as there are many social networking sites (like Google+,facebook, twitter etc) are available to connect with users. We can add more contact methods in contact info section. To add more fields edit functions.php file in your […]
Calculation of difference between 2 dates is not an easy task so I m writing a function which do this job easily. This function is useful for calculate age of person by DOB (date of birth) or calculating age of record in databse
Are you a webmaster and want to index your website by Google in few hours? Then you are at right place. Most of the new webmasters have one question: “Why does Google not find my website”. In most of the cases it is due to the fact that your website is not yet indexed by […]
To send email from your php script either you can use PHP’s built-in mail function or third party library like phpmailer or swiftmailer. In this article you will find both methods to send email.
Pure php based domain availability checker script. This script can check domain availability without whois lookup. And supports all TLDs over internet How it works? Each registered domain has its own ns (name server) entry. Which can be checked using dns_get_record() function. In this script we check whether queried domain has it ns entry or […]
Some times there are many many sleep processes in your SQL connection. These sleep connections consume a lot of resources (RAM, cache and processor). This can cause your MySQL server slow down. If your MySQL server is not responding then the query to the database will take a lot of time. In such situations, your […]