A simple script that formats the number ob bytes of a file to kb, mb, gb or tb. function mksize($bytes) { if ($bytes < 1000 * 1024) return number_format($bytes / 1024, 2) . " KB"; elseif ($bytes < 1000 * 1048576) return number_format($bytes / 1048576, 2) . " MB"; elseif ($bytes < 1000 * 1073741824) return number_format($bytes... more »
Tags: file, php, script, sizeKlemen pointed out that there was an internal (now external) beta release of the most used Windows Live Messenger addon, Plus!. He also said, that the non-beta version should be out in the next few days. For those of you who can’t wait to try it, feel free to download it from his site. Go Klemen! Read More →
Tags: msn, plus, WLMThis script is more accurate then a normal validation script. After checking if the email is correctly typed in (@) it checks the domain validity by checking it’s dns records (MX, A and CNAME). A piece of the regex is cut because of my sidebar but if you copy/paste everything you should see it function check_email($email) { if( (preg_match('/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/',... more »
Tags: email, php, scriptAgain.. if you get a message like: Hey bima_pff check out the pics from the crazy party!! they are nuts LOL! go here to see http://nasal.burnoutpeeps.com Don’t go there! AND USE FIREFOX. Read More →
Tags: messenger, virus, WLMI used UltraEdit and then changed to Notepad++ but decided to start using something more specific for php. I found a site that reviews quite a lot of them, PHP editors review. I downloaded PHP Eclipse (you need Eclipse and then go to Help – Software updates – Available software – Add site – oaste http://update.phpeclipse.net/update/stable/1.2.x)... more »
Tags: css, php, tool