Development Blog by Professionals
Archive for January 13, 2010
PHP regular expressions examples
Jan 13th
A simple method of validating an IP address using PHP and regular expressions
<? $string = “255.255.255.255″; if (preg_match( ‘/^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:[.](?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$/’, $string)) { echo “IP address is good.”; } ?>
More >
Disable Virus Auto-check in Firefox 3
Jan 13th
Please be sure you are downloading safe files. This virus check is put in for a reason and should only be disabled if you are confident you know what you are doing.
- Type about:config in the Firefox address bar
- Now filter the following browser.download.manager.scanWhenDone
- Set the parameter to False
Now, Firefox wont slow down after every file you download.


