Sher Singh

Bootstrap Progress bar to show long running PHP script

We may have a request to the back end system which may trigger a long running process such as searching huge amount of data or a long running database process. Then the front end webpage may hang and wait for the process to be finished. During this process, if we can provide the user some information […]

Import/Export excel report file in php with PHPExcel

PHPExcel – OpenXML – Read, Write and Create Excel documents in PHP – Spreadsheet engine Project providing a set of classes for the PHP programming language, which allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, … […]

30+ PHP Best Practices for Beginners

PHP is the most widely-used language for programming on the web. Here are thirty best practices for beginners wanting to gain a firmer grasp of the fundamentals. Editor’s Note: The “Best Practices” series has been my baby for three articles now. However, due to my focus on the CI video series, I’ve decided to hand […]

15 Best PHP Libraries Every Developer Should Know

PHP is a powerful Web site scripting language that makes it easier for Web site developers to create dynamic and engaging Web pages. Developers can use PHP code with a number of Web site templates and frameworks for improved functionality and features. However, writing PHP code can be a tedious and time-consuming process. In order […]

How to Boot Your Computer from a USB Flash Drive

USB Boot Guide Step-By-Step Quick Start 1- Obtain, borrow, buy or make a bootable USB flash drive. 2- Power Off your computer completely. [Start]–>[Shutdown] 3- Insert CraftedFlash bootable USB Drive. 4- Power On your computer. 5- Press the Boot Menu Key, usually Esc or F12 when the display starts. 6- Select USB-HDD or “Patriot Memory” […]

20+ .htaccess Hacks Every Web Developer Should Know About

1. Prevent Hotlinking Tired of people using your bandwidth by putting the images hosted on your server on their website? Add the following code at the bottom of your .htaccess file to prevent hotlinking. 1 Options +FollowSymlinks 2 #Protect against hotlinking 3 RewriteEngine On 4 RewriteCond %{HTTP_REFERER} !^$ 5 RewriteCond %{HTTP_REFERER} !^http://(www.)?domainname.com/ [nc] 6 RewriteRule […]

Major Shipping Rate Changes Announced: What eCommerce Companies Need to Know

Monday, May 12th, 2014 Size matters.  That’s what FedEx and UPS are telling us with recent rate calculation changes announced this year.  Effective January 2015, all ground packages will be subject to “Dimensional Weight” pricing, rather than just actual weight, to determine shipping rates.  Until now, this pricing was reserved for large ground shipment boxes (greater […]

PHP Redirect 301 permanently

Sometimes you might want to redirect your visitors to a new URL address. This article will show you how to make a PHP redirect using the 301 “moved permanently” redirection. This is the one you should use as it is the most search engine friendly. Like the name suggests, PHP redirect tells the browser (or […]

How to make Select All with single check box in jQuery?

How to make Select All with single check box in jQuery. $(document).ready(function () { $(‘#selecctall’).click(function (event) {  //on click if (this.checked) { // check select status $(‘.check’).each(function () { //loop through each checkbox this.checked = true;  //select all checkboxes with class “checkbox1” }); } else { $(‘.check’).each(function () { //loop through each checkbox this.checked = […]