熟女伦乱激情网一区二区,十八禁免费漫画在线观看,欲色欲香天天网综合久久,美女无遮挡隐私叼嗨网站

1、使用PHP Mail函數(shù)發(fā)送Email

$to = "viralpatel.net@gmail.com";  
$subject = "VIRALPATEL.net";  
$body = "Body of your message here you can use HTML too. e.g. ﹤br﹥ ﹤b﹥ Bold ﹤/b﹥";  
$headers = "From: Peter\r\n";  
$headers .= "Reply-To: info@yoursite.com\r\n";  
$headers .= "Return-Path: info@yoursite.com\r\n";  
$headers .= "X-Mailer: PHP5\n";  
$headers .= 'MIME-Version: 1.0' . "\n";  
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";  
mail($to,$subject,$body,$headers);  
?﹥   
2、PHP中的64位編碼和解碼
function base64url_encode($plainText) {
$base64 = base64_encode($plainText);
$base64url = strtr($base64, '+/=', '-_,');
return $base64url;
}

function base64url_decode($plainText) {
$base64url = strtr($plainText, '-_,', '+/=');
$base64 = base64_decode($base64url);
return $base64;
} 
3、獲取遠程IP地址
function getRealIPAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))   //check ip from share internet
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))   //to check ip is pass from proxy
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
$ip=$_SERVER['REMOTE_ADDR'];
}
return $ip;
}
4、 日期格式化
function checkDateFormat($date)
{
//match the format of the date
if (preg_match ("/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/", $date, $parts))
{
//check weather the date is valid of not
if(checkdate($parts[2],$parts[3],$parts[1]))
return true;
else
return false;
}
else
return false;
}

5、驗證Email

$email = $_POST['email'];
if(preg_match("~([a-zA-Z0-9!#$%&'*+-/=?^_`{|}~])@([a-zA-Z0-9-]).
                                 ([a-zA-Z0-9]{2,4})~",$email)) {
echo 'This is a valid email.';
} else{
echo 'This is an invalid email.';
} 

 

 

穩(wěn)定

產(chǎn)品高可用性高并發(fā)

貼心

項目群及時溝通

專業(yè)

產(chǎn)品經(jīng)理1v1支持

快速

MVP模式小步快跑

承諾

我們選擇聲譽

堅持

10年專注高端品質(zhì)開發(fā)
  • 返回頂部
平阳县| 宁强县| 静海县| 石首市| 兴安盟| 西丰县| 泊头市| 乌拉特后旗| 绍兴市| 武城县| 正宁县| 崇信县| 库伦旗| 康马县| 全南县| 疏勒县| 晋城| 婺源县| 通辽市| 旌德县| 光山县| 邵东县| 丁青县| 清镇市| 弥勒县| 陕西省| 固原市| 温宿县| 玛沁县| 桃园县| 陵水| 山丹县| 荆州市| 清徐县| 大埔区| 边坝县| 枞阳县| 玉门市| 沭阳县| 息烽县| 收藏|