| Here is a Simple PHP function to check valid Email Addresses. The function accepts Email string trims it check whether it satisfies the Email format. if it satisfies then return TRUE else FALSE. Scroll down for the function. | |
| function validateEmail( $strEmail ){ $strEmail=trim($strEmail); if( $strEmail!="" ){ $pattern="/^([a-z0-9_\.]+)@([a-z0-9_\-\.]+)\.([a-z]{2,3})$/i"; if( preg_match($pattern,$strEmail,$match) ){ return TRUE; }else FALSE; }else return TRUE; } How to use this function? $myEmail=$_POST['txt_email']; if validateEmail( $myEmail ) echo("VALID EMAIL"); else echo("YOU ENTERED AN INVALID EMAIL."); Hope thi shelp someone... :) | |
How to use WiFi adapter on Ubuntu 16.04 desktop PC - Realtek RTL8188EUS 802.11n Wireless USB Network Adapter Driver installation
Installation of Realtek RTL8188EUS 802.11n Wireless USB Network Adapter on Desktop PC having Ubuntu 16.04 OS My PC is running in Ubuntu 16.04 OS, recently I thought of using a dongle wife adapter to access our home's Wifi network. For this I used Realtek RTL8188EUS 802.11n Wireless USB Network Adapter ( Model No: OT-WUA950NM ) This small device cost around Rupees 250/- to Rs 300/- in India. I did the following steps for installation of this Realtek Nano Wifi Adapter: Plug Realtek RTL8188EUS 802.11n Wireless USB Network Adapter to your PC's USB port, Take the terminal application and run the command "lsusb" to list the plugged in usb devices: Myhome:~$ lsusb Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. R...

Comments
Post a Comment