POP3 class written using PHPSocket. When viewing the POP3SMTP protocol, I want to write an operation class by myself. The core is to use fsockopen and then write and receive data, which only implements the core functions, when viewing POP3/SMTP
POP3 class implemented in PHP can be directly used.
POP3 class implemented in PHP can be directly used.
When viewing POP3/SMTP protocols, I want to write an operation class by myself. The core is to use fsockopen and then write/receive data,
POP3 class implemented in PHP can be directly used. When viewing POP3/SMTP protocols, I want to write an operation class by myself. The core is to use fsockopen and then write/receive data, which only implements the core functions, as a trainer who
smtp| program if ($EMAIL _inc) return;
$EMAIL _inc= "defined";
Define ("Smtpport", 25);
Class Pop3 {
var $subject; Message subject
var $from _email; Sender Address
var $from _name; Sender Name
var $to _email; Recipient address
var $to _name;
Reference URL http://hi.baidu.com/quiteuniverse/blog/item/9f3f043d46ad1e07bba16716.html
The following function calls the method:
function Check ()
{
var bb = document.getElementById ("txt_id"). VALUE;//TXT_ID is the ID alert for the text
I. Regular telephone number
Http://s.click.taobao.com/t_8? E = 7hz5x % 2bozdswsvvyc5jts79au1q % 3d % 3d & P = mm_24156262_0_0
$ (). Ready (function (){
$ ("# Btnphone"). BIND ("click", function (){
JavascriptCode
VaR A =/^ (0 [0-9] {2, 3 }\
Android-CheckBox implementation calculator, androidcheckbox
Source code: http://download.csdn.net/detail/wu20093346/7718055
Use the OnCheckedChangeListener of the CheckBox to trigger the event ,:
list=new OnKeyListener() { @Override public
// Function Name: trim// Function Description: removes spaces at the beginning and end of a string.// Creation Date:// Last Modify By: N/// Last Modify Date: N/String. prototype. trim = function (){Return this. replace (/(^ \ s *) | (\ s * $)/g ,"");
Source: http://download.csdn.net/detail/wu20093346/7718055Use the checkbox's Oncheckedchangelistener to do event triggering:List=new Onkeylistener () {@Override public boolean onKey (View v, int keycode, keyevent event) {//TODO auto-generated Me
Function Name:trim
Function Description: Removing the trailing spaces of a string
Creation Date:2004-7-13 15:30
Last Modify by:n/a
Last Modify date:n/a
String.prototype.trim=function () {
Return This.replace (/(^\s*) | ( \s*$)/g, "");
}
Function
! Remove the processing of whitespace on both ends of a string
If you take the traditional approach, you might want to take the following approach.
Clear left Space
function Js_ltrim (DESTSTR)
{
if (deststr==null) return "";
var pos=0;
var
/*
To determine if the specified content is empty, or to eject the warning box if blank
*/
Function IsEmpty (thevalue, STRMSG) {
if (thevalue== "") {
Alert (strmsg+ "cannot be empty!");
return true;
}
return false;
}
/*
Chinese judgment function,
JS Regular expression//checksum is all composed of numbers function isdigit (s) {var patrn=/^[0-9]{1,20}$/; if (!patrn.exec (s)) return false return True}//Checksum Login Name: You can only enter 5-20 letters beginning with a letter, with numbers, "_
JS verification function call method and note:
1. Set onsubmit = "return test ()" for the form and submit it with .
2. // call function verification directly when you press the mouse
3. // pass in your own value for verification, test (this) //
JS validation function of the call method and note:
1. Set the form onsubmit= "return test ()", with Submit.
2.//When the mouse is pressed, call function validation directly
3.//Pass in its own value for verification, test (this)//incoming object
We recommend that you search for and collect many common js judgment functions. We recommend that you search for common js judgment functions.
*Determines whether the specified content is null. If it is null, a warning box is displayed.*/Function
Function checkidcard (strnumber){// ID card number format Function// The citizenship number is a feature combination code,// The Order is from left to right: six-digit address code, eight-digit birth date code, three-digit sequence code, and
// Check whether all numbers are composed of function isdigit (s) {var patrn =/^ [0-9] {} $/; If (! Patrn.exe C (s) return false return true} // check the logon name. You can enter only 5-20 names starting with a letter, including numbers, "_", and "
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.