List/Grid PHP Functions Subscribe RSS feed of category PHP Functions

Calculate average and sum from Mysql query

Calculate average and sum from Mysql query

The AVG function return the average value of the specified column. For example I have a table of product list and now I want the total of price and average… Read more »


How to Replace Newline with Space Using PHP

How to Replace Newline with Space Using PHP

Sometimes you need to replace newline to space or any other format (i.e:- \r\n). This is done by copying and pasting the content. To resolve this problem I use the… Read more »


Force download using PHP

Force download using PHP

A force-download script can give you more control over a file download than you would have providing a direct link. Using a force-download script, you can: Download image file Download… Read more »


How to use ASCII value with PHP

How to use ASCII value with PHP

Character encoding is useful in web development for generating character strings from random numbers (CAPTCHA images for instance), displaying non-standard characters and many other purposes. To use charachter encoding with… Read more »


How to show the size of folder using PHP with progressbar

How to show the size of folder using PHP with progressbar

To show the details of folder, first of all we check that, it is folder of file. If it is a folder then we count the number of files present… Read more »


© 2012 Sumit Bansal. All rights reserved. XHTML / CSS Valid.