摘要: 1,首先下载PHPmailer文件。 2,代码示例如下 <?phpheader("content-type:text/html;charset=utf-8"); require './mss/class.phpmailer.php';$c = '九月的第一天'; $str = file_get_co 阅读全文
posted @ 2017-09-01 14:11 yahn~ 阅读(314) 评论(0) 推荐(0)
摘要: 1,首先需要下载安装memache,并且下载扩展文件到PHP根目录下的ext文件中。 2,需要修改php.ini配置文件,加一行代码即可。 3,应用代码如下: <?php header("content-type:text/html;charset/utf-8"); //链接ip地址 $server 阅读全文
posted @ 2017-07-20 17:29 yahn~ 阅读(700) 评论(0) 推荐(0)
摘要: 前几天遇到一个客户和我对接,说是要用报文的形式,webservice,始终不明觉厉,经过一周多的琢磨,终于执行成功,闲话少许,代码如下: <?phpheader("content-type:text/html;charset=utf-8");$xml_data = '<xml></xml>';$se 阅读全文
posted @ 2017-07-13 16:21 yahn~ 阅读(648) 评论(0) 推荐(0)
摘要: class test{ public $b; //function __construct(){ // return $this->b; // } function test(){ return $this->b = 5; } function addab($c){ return $this->b+ 阅读全文
posted @ 2017-06-15 09:40 yahn~ 阅读(119) 评论(0) 推荐(0)
摘要: <form action="http://api.emailcar.net/mail/send" enctype="multipart/form-data" accept-charset="utf-8" method="post"> apiUser:<input type="text" name=" 阅读全文
posted @ 2017-06-02 17:35 yahn~ 阅读(354) 评论(4) 推荐(0)
摘要: <?php class sms_send{ /** *短信模板添加 */ function sms_add(){ //短信签名 $data['sign'] = 'emailcar'; //短信标题 $data['title'] = '您的测试短信2'; //短信内容 $data['content'] 阅读全文
posted @ 2017-06-02 15:05 yahn~ 阅读(221) 评论(0) 推荐(0)
摘要: <?php header("content-type:text/html;charset=utf-8");//设置代码执行不受时间限制set_time_limit(0);//链接数据库$con = mysqli_connect("127.0.0.1","root",'','test');if(mys 阅读全文
posted @ 2017-05-20 20:15 yahn~ 阅读(1284) 评论(0) 推荐(0)
摘要: <?php //示例是数据匹配实例,两张表通过关联字段email匹配mobile header("content-type:text/html;charset=utf-8");set_time_limit(0); $con = mysqli_connect("127.0.0.1","root",'' 阅读全文
posted @ 2017-05-20 19:49 yahn~ 阅读(876) 评论(0) 推荐(0)
摘要: <?php$mysqli = new mysqli('localhost','root','','le');$result = $mysqli->query('SHOW TABLES');//执行查询语句//输出此数据库中表结构$tables = array();while($arr = $resu 阅读全文
posted @ 2017-04-07 13:11 yahn~ 阅读(984) 评论(0) 推荐(0)
摘要: 1,以省、市为例子,二级下拉框,先赋上页面,html部分如下: <div class="form-group"> <label for="inputEmail3" class="col-sm-2 control-label">城市</label> <div class="col-sm-10"> <s 阅读全文
posted @ 2017-03-28 09:59 yahn~ 阅读(1531) 评论(0) 推荐(0)