How to create a jump to link

Jump link is used for jumping between part of a page. Wonder how to create a jump link? Ie: jump from the top of the page to the bottom? This will comes handy if you have a very long page. Or jump to top from the bottom of a page? Jump link consist two “HTML a” tags, the link &…

Read More »

PHP function to cut string into a specific length

PHP function to cut string into a specific length. Very useful for “Read More” links. function wCut($str, $maxLength = 40) { $strToCount = html_entity_decode($str); if (strlen($strToCount) <= $maxLength) { return $str; } $s2 = substr($strToCount, 0, $maxLength – 3); $s2 .= “…”; return htmlentities($s2); } $str = ‘Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nunc risus, euismod ac,…

Read More »

How to disable Windows Vista 64 bit hibernate?

Hibernate is a feature seen in many operating systems where the contents of RAM is written to non-volatile storage, such as the hard disk (as either a file or on a separate partition) before powering off the system. Later the system can be restored to the state it was in when hibernation was invoked, so that programs can continue executing…

Read More »