How to check Skype address validity?
This will check regular Skype address. if (ereg(“^[a-zA-Z]{4,20}$”, $skype)) { echo ‘Valid’; } else { echo ‘Invalid; }
Read More »This will check regular Skype address. if (ereg(“^[a-zA-Z]{4,20}$”, $skype)) { echo ‘Valid’; } else { echo ‘Invalid; }
Read More »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 »This will validate ICQ ID (number only). if (ereg(“^[0-9]{6,15}$”, $icq)) { echo ‘Valid’; } else { echo ‘Invalid; }
Read More »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 »Sometimes you need an easy way to count number of lines in a text file. For example, how many lines in a .csv file. Easy: wc -l somefilename.csv You can also count number of characters in a file using “wc”: wc -m somefilename.txt Or number of words: wc -w somefilename.txt Explore the possiblities of “wc”: # wc –help Usage: wc…
Read More »This will validate most email address. if (ereg(“^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@+([_a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]{2,200}\.[a-zA-Z]{2,6}$”, $email)) { echo ‘Email valid’; } else { echo ‘Email invalid; }
Read More »