- 博客(8)
- 收藏
- 关注
转载 33个超级有用必须要收藏的PHP代码样例
<?php/** * 时间:2015-8-6 * 作者:River * 超级有用、必须收藏的PHP代码样例 */class Helper { /** * 友好显示var_dump */ static public function dump($var, $echo = true, $label = nu...
2017-11-30 11:27:00
66
转载 git服务器实现自动部署
原理与流程git用户执行git push操作远程仓库发现有用户执行了push操作,就会执行一个脚本post-receive(钩子)在post-receive脚本中,将git仓库的代码拷贝到站点目录下创建git仓库我们可以在自己的服务器上创建git仓库,有两种方式:git --bare init(裸仓库)git init两者区别:普...
2017-11-22 14:44:00
189
转载 js 判断访问web是什么设备
/*移动和PC相互切换代码*/ var mobileAgent = new Array("iphone", "ipod", "ipad", "android", "mobile", "blackberry", "webos", "incognito", "webmate", "bada", "nokia", "lg", "ucweb", "skyfire"); ...
2017-09-29 18:02:00
175
转载 php post 请求https接口
/** * POST请求https接口返回内容 * @param string $url [请求的URL地址] * @param string $post [请求的参数] * @return string */ public function post_curls($url, $post) { ...
2017-09-29 17:31:00
203
转载 php 创建压缩文件我这里没有解压过程因为不会
<?php //获取参数 $file = $_GET['file'];//路径 我这里使用:号分割 例如在服务器当前文件夹下的 upload/user/20170306xgtlne.doc:upload/user/xxx.jpg $name=$_GET['name'];//下载文件名//分隔符:放到$files数组...
2017-05-19 15:26:00
67
转载 实现word在线预览 有php的写法 也有插件似
1 <?php 2 //header("Content-type:text/html;charset=utf-8"); 3 //word转html 展示 4 $lj=$_GET['file'];//传来的是文件位置 具体看自己的传值 upload/user/20170306/20170306xgtlne.doc 5 $lj=str_replace("/",'...
2017-05-19 15:14:00
126
转载 php exl表格导出
<?phpheader("Content-type:text/html;charset=utf-8");$servername = "localhost";$username = "root";$password = "Xiaowu34!@#";$dbname = "job_qybk";$conn=mysqli_connect($servername...
2017-05-12 17:29:00
101
转载 php的链接数据库方式和返回json数据
header("Content-type:text/html;charset=utf-8"); $servername = "localhost";//服务器地址 $username = "root";//帐号 $password = "Xiaowu34!@#";//密码 $dbname = "job_qybk";//表名 $conn...
2017-05-12 17:26:00
137
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人