01 2018 档案
摘要:1.注册登录云通讯 http://www.yuntongxun.com/user/login 2.创建应用得到应用相关信息 3.下载对应相关的Demo示例 http://www.yuntongxun.com/doc/rest/sms/3_2_2_3.html 4.send.php文件添加代码方便后续
阅读全文
摘要:上传文件 --> 2*1024*1024){ exit('文件上传过大'); } //第六步:临时文件 $filename=$_FILES['upload']['tm...
阅读全文
摘要:参考地址 https://www.cnblogs.com/keyi/p/5817728.html
阅读全文
摘要:ajax connect_error) { die("连接失败: " . $mysqli->connect_error); } $mysqli->select_db('three'); $mysqli->query('set names utf8'); if($_GET['type']==...
阅读全文
摘要:php5以后推荐使用pdo或者mysqli连接数据库 <?php $servername = "127.0.0.1"; $username = "root"; $password = "root"; try { $pdo = new PDO("mysql:host=$servername;dbnam
阅读全文
摘要:ajax 用户名: sorry,用户名已存在'; }else{ echo '恭喜,该用户名可用'; } ajax 用户名: sorry,用户名已存在'; }else{ echo '恭喜,该用户名可用'; }
阅读全文
摘要:ajax获取不同域的数据,只要协议,域名,端口有任何不同,都会被当作是不同的域。 1.jsonp解决跨域问题是一种非官方得方式,这种方式只支持get方式,不如post安全,即使jquery得jsonp方法,type设置为post,也会自动变成get。该协议的一个要点就是允许用户传递一个callbac
阅读全文
摘要:PHP <?php //302重定向 缺少http://会造成重复重定向 $url = "http://www.cnblogs.com/mengor"; header( "Location: $url" ); //301重定向 $url = "http://www.cnblogs.com/mengo
阅读全文
摘要:<?php require_once './phpqrcode/phpqrcode.php'; /* * 地址:http://phpqrcode.sourceforge.net/ 下载qrcode类 * @param string $url 要生成的链接 * @param bool $local 是
阅读全文

浙公网安备 33010602011771号