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 »

How to transfer a domain out of GoDaddy.com?

Don’t know how to transfer your domain out of GoDaddy? Can’t find how to get your domain EPP / Authorization Code from GoDaddy cluttered and irritating domain control panel? I feel your pain, I just recently transferred a domain out of GoDaddy. The domain in question transferred in 3 hours since the minute I initiate the transfer. This is how…

Read More »