Category: PHP Scripts

Calculate week in PHP 0

Calculate week in PHP

Use this script to calculate a week in PHP <?php $date = mktime(0, 0, 0, 01,27, 2011); $week = (int)date(‘W’, $date); ?>

Remove admin color scheme picker from profile 0

Remove admin color scheme picker from profile

Add this script to the functions.php of your wordpress theme will remove the admin color scheme picker from the profile page. if(is_admin()){ remove_action(“admin_color_scheme_picker”, “admin_color_scheme_picker”); }

How to make a dynamic tree structure menu 0

How to make a dynamic tree structure menu

To make dynamic tree structure menu, We have to make to functions one is for “Parent Menu” and second for “Child Menu or Sub Child Menu”. $query = “select * from categories where parentid=’0′”;...

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 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...

Rewrite dynamic URL to static URL in PHP using .htaccess 0

Rewrite dynamic URL to static URL in PHP using .htaccess

When search engine visits the dynamic url site i.e http://sumitbansal.com/category.php?p=10, so it does not gives the more importance to this page because it keeps on chainging. So we convert the dynamic URL to static...