As a PHP developer, we often need to implement functionality to download files. But sometimes it needs to implement large large files download in MB, GBs and create many issues. So here I have created a simple PHP script for file download. This script helps you download files in PHP, capable of downloading files in MB and GBs with any issue. (more…)
As a PHP programmer we always need to write
INSERT statement repeatedly to insert records into database. This sometimes makes us annoyed to write same thing again and again in same script. To overcome this, we have created a generic insert script to handle all insert record by just passing array of table field name and table field values. (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.