[置顶] 学习网站账号信息

该文被密码保护。 阅读全文

posted @ 2017-11-13 15:32 叶少翔 阅读(8) 评论(0) 推荐(0) 编辑

2019年12月15日

Jquery中ajax基本语法

摘要: 一.$.ajax的基本使用结构 var response = $.ajax({ type: "POST", url: "/index.php?m=content&c=index&a=getList", data: { "page" : currentPage, "pTime":new Date(). 阅读全文

posted @ 2019-12-15 12:17 叶少翔 阅读(984) 评论(0) 推荐(0) 编辑

jQuery+Ajax+PHP滚动加载

摘要: function ajax_more(){ $type = isset($_POST['type']) ? (int)Yin::_input('post.type') : 0; //传递的参数 $page = isset($_POST['page']) ? (int)Yin::_input('pos 阅读全文

posted @ 2019-12-15 12:16 叶少翔 阅读(482) 评论(0) 推荐(0) 编辑

ajax无刷新分页

摘要: /* * 数据异步请求 */ function S_request(page){ $.ajax({ url: '请求的url', type: 'post', dataType:'json', data : { page : page }, success:function(data){ if (da 阅读全文

posted @ 2019-12-15 12:15 叶少翔 阅读(176) 评论(0) 推荐(0) 编辑

2018年6月21日

PHPExcel数据导出到Excel文件

摘要: /** * 数据导出到Excel文件 * * @param object $data 要导出的数据内容 * @param object $headArr 设置Excel的头名称 * @param string $fileName 导出的文件名称 * @param string $width 设置单元格的宽度 * * ... 阅读全文

posted @ 2018-06-21 19:06 叶少翔 阅读(243) 评论(2) 推荐(0) 编辑

2018年3月27日

Linux下启动,停止,重启Nginx、Mysql、PHP

摘要: LINUX启动Nginx的命令: 一、查询是否启动 [root@jiang php-fpm.d]# ps -ef | grep nginx root 25225 1 0 19:26 ? 00:00:00 nginx: master process /app/nginx/sbin/nginx www 阅读全文

posted @ 2018-03-27 19:35 叶少翔 阅读(51132) 评论(3) 推荐(3) 编辑

2018年3月12日

mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication.

摘要: 在阿里云ecs云服务器调用云主机的数据库时mysql报错如下: 连接失败: mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to 阅读全文

posted @ 2018-03-12 23:34 叶少翔 阅读(483) 评论(0) 推荐(0) 编辑

2018年3月2日

linux系统给普通用户添加sudo权限

摘要: linux下直接运行sudo命令,会提示类似: jiang is not in the sudoers file. This incident will be reported. 这里,jiang是用户名称,然后导致无法执行sudo命令,这时候,如下解决:编辑/etc/sudoers文件。也就是输入 阅读全文

posted @ 2018-03-02 11:40 叶少翔 阅读(136) 评论(0) 推荐(0) 编辑

2018年2月27日

Linux下全局安装composer方法

摘要: # 下载composer [vagrant@localhost ~]$ curl -sS https://getcomposer.org/installer | php # 将composer.phar文件移动到bin目录以便全局使用composer命令 [vagrant@localhost ~]$ 阅读全文

posted @ 2018-02-27 18:13 叶少翔 阅读(163) 评论(0) 推荐(0) 编辑

PHP 将微信录音arm格式文件转mp3格式

摘要: 环境依赖说明:1、在服务器安装ffmpeg2、使用ffmpeg -i 命令来转换amr为mp3格式 cenos6系统下安装ffmpeg,具体安装步骤如下: 在安装过程中可能出现的错误如下:错误1. ffmpeg默认安装目录为"/usr/local/lib",有些64位系统下软件目录则为"/usr/l 阅读全文

posted @ 2018-02-27 16:38 叶少翔 阅读(1899) 评论(0) 推荐(0) 编辑

命令汇总(持续中)

摘要: # PHP重启 service php-fpm restart /etc/init.d/php-fpm-5.4.33 restart # 查询mysql是否启动 service mysqld status service mysqld start # 软连接符号命令 ln -s 源文件 目标文件 l 阅读全文

posted @ 2018-02-27 15:39 叶少翔 阅读(163) 评论(0) 推荐(0) 编辑

导航