一、前端
1.ajax
2.验证码
<span> <img src="index.php?act=seccode&op=makecode&type=50,120&nchash=<?php echo getNchash();?>" name="codeimage" id="codeimage"> <a class="makecode" href="javascript:void(0)" onclick="javascript:document.getElementById('codeimage').src='index.php?act=seccode&op=makecode&type=50,120&nchash=<?php echo getNchash();?>&t=' + Math.random();"> 看不清,换一张
</a> </span>
二、后台
1.curl
18006锁卖品为例
2.require_once
require_once BASE_ROOT_PATH.'/member/api/smiMember/actions/SmiLoginByPasswordAction.php';
$handler = new SmiLoginByPasswordAction($user_name,$password); $handler->validateLogin();
3.file_get_contents
$api_send = file_get_contents(HTTP ."/api/send_sms.php?op=send&order_id='123456'");