Category: PHP Functions

Calculate average and sum from Mysql query 0

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 price of all the...

How to Replace Newline with Space Using PHP 0

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 given blow code. $remove_character...

Force download using PHP 0

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 pdf, flash, mp3 etc....

How to use ASCII value with PHP 0

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 PHP or To use...

How to show the size of folder using PHP with progressbar 0

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 in that folder and...

How to use meta tag and description dynamically for wordpress 0

How to use meta tag and description dynamically for wordpress

To use meta tag and description in wordpress dynamically, we use the wordpress tags as a meta tags and excert content use as a meta description. As per the requirement description should be 150...