Change wordpress excerpt length

Copy and paste the given blow code in your theme functions.php file which will change the length of the wordpress excerpt function. function ratanjyot_solutions_excerpt_length($length) ...

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

What is the difference between MyISAM and InnoDB?

The main difference between mysql table type MyISAM and InnoDB is that InnoDB supports transaction by MyISAM does not. MyISAM support full text search but InnoDB does not. InnoDB supports ...

How to get number of days between two dates in PHP

By the given blow script we can find the number of days between two dates <?php $first_date = strtotime("2010-08-01"); // or current date as well $second_date = strtotime("1988-08-01"); ...

Get current URL in PHP

Sometime, you need to get a current page URL that is shown in the browser address bar. Here is a small code to get the current url. $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'] .$_SERVER['REQUEST_URI'] ...
© 2013 Sumit Bansal. All rights reserved. Site Admin · Entries RSS · Comments RSS
Powered by WordPress · Designed by Theme Junkie