To get a domain name in php, we use http_host or server_name variables. But what is the difference between http_host and server_name and which one will return more accurate results?
We can remove non printable characters in string by using preg_replace function in php, It's quite simple.
This simple function will return number of days for given month in php
General way of trimming last character of string in php is using substr function. But there is another way we can do it using rtrim().
When I try to access phpmyadmin after installing xampp in my linux system, I stuck with this error: New XAMPP security concept: Access to the requested object is only available from the local network. This setting can be configured in the file "httpd-xampp.conf".
We sometimes need to validate the integrity of given email id. The easiest way we have is just sending a verification mail to the given email id and asking the user to click on the link in that email. But other than that we have three more ways, that is, SMTP Email Validation, MX Record Check and Regular Expression&
Basic idea behind converting text to image is to avoid spammers grabbing important data like emails, phone numbers etc. This simple php script convert text to image dynamically, Just have a glance at this script.