What's New Here?

Calculate week in PHP

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

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 check date if date is between two date

How to check date if date is between two date

This function the return the true and false if date is exist or not exist. function dateWithin(StartDate,EndDate,CheckDate) { var b,e,c; s = Date.parse(StartDate); e = Date.parse(EndDate); c = Date.parse(CheckDate); if((c… Read more »

Fix wordpress plugin profile pic error

Fix wordpress plugin profile pic error

The error of the profile pic has been fix. The error was in the new version of wordpress is not upload the profile picture. Solution to resolve this problem Open… Read more »

Add a trailing slash to requested urls

Add a trailing slash to requested urls

Without trailing slash URL shows URL count as a page and with trailing slash it’s count as directory. Search engine gives the high priority to directory in comparision of page…. Read more »

Error reporting and debugging in codeigniter

Error reporting and debugging in codeigniter

To Turn off Debugging Set the db_debug value(in the application/config/database.php config file) to false To Turn off Error reporting Set the Envirement value(in the top of the main index.php) to… Read more »

How to redirect my website to be opened through HTTPS?

How to redirect my website to be opened through HTTPS?

In order to redirect your website to be opened through HTTPS, you should add the following rewrite rule in your .htaccess file:  RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule .* https://www.domain.com/%{REQUEST_URI}… Read more »

Latest Tweets

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