Here I am going to share a very useful PHP
get_browser function to get user browser details. The function give details what the user’s browser is capable of. (more…)
Pagination is an essential part of any web application. It’s a process of dividing large content into small parts and displaying on multiple pages in chunks. When data grows in web applications, it cannot be displayed on a single page as it will create issue like browser hang and long vertical scroll. (more…)
PHP 7, a huge release is due in this year. The PHP 7 will offer reduce memory consumption, performance improvements and more capabilities. After a broad research to improve PHP performance results in a new codebase that is nearly 100% compatible and provides anywhere between 20% and 110% performance gains in real world applications such as WordPress, Drupal or SugarCRM. It also significantly reduces memory consumption. (more…)
We often need to remove leading and trailing spaces from a user inputted string or when we want to break up a list of items. PHP allows many useful functions to format your strings according to your requirement to automatically remove characters from the beginning and end of a string. (more…)
Parsing HTML pages is always a challenge for PHP programmers. HTML parsing is done for retrieving images, scraping websites, crawling, error detection websites, and many other useful purposes. But PHP Simple HTML DOM Parser is a awesome or can say dream library for developer that work with both PHP and the DOM element using PHP.
Sometimes we need to ban particular visitors to access our website. For this, the most common reason is spammers and scrapers that perform malicious activity from few persistent IP addresses. Although there are so many tricks to block multiple IP addresses such as using htaccess, Apache mod_rewrite but here you’ll know the simple trick to block multiple IP addresses using PHP.