上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: (function(){ this.sendAjax = function(url,func,formData,type){ type = type || "POST"; //默认为POST的方式 var xhr = new XMLHttpRequest(); if( typeof xhr.withCredentials===undefin... 阅读全文
posted @ 2015-09-01 10:51 chy1000 阅读(277) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-08-26 14:19 chy1000 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 在百度搜索到的 PharData 类和 ZipArchive 都是解压不了 .gz 的文件的,后来在 google 搜索到解决方法,问题解决。 http://stackoverflow.com/questions/3293121/how-can-i-unzip-a-gz-file-with-php 阅读全文
posted @ 2015-08-24 15:25 chy1000 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: select aid,group_concat(bid order by bid separator ',') as bid_str from tbl group by aid; SET GLOBAL group_concat_max_len = 1024; show variables like 阅读全文
posted @ 2015-08-22 10:35 chy1000 阅读(13456) 评论(0) 推荐(0) 编辑
摘要: <VirtualHost *:80> ServerName www.test.com DocumentRoot /var/www/www.test.com ErrorDocument 404 /404.html <Directory /var/www/www.test.com> <Files ~ " 阅读全文
posted @ 2015-08-19 14:38 chy1000 阅读(262) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-08-18 11:47 chy1000 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Pdo::$instance->beginTransaction(); //开启事务 Pdo::$instance->rollBack(); //回滚 Pdo::$instance->commit(); //提交事务 阅读全文
posted @ 2015-08-15 09:53 chy1000 阅读(316) 评论(0) 推荐(0) 编辑
摘要: curl_error($ch) 用 curl_error 来获取 curl 的错误 阅读全文
posted @ 2015-08-14 11:09 chy1000 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: nohup python -u /data/daemon/daemon/run.py & 使py程序可以在后台运行 nohup php a.php &在linux平台上,要在后台运行脚本的话,一般是在命令之后加上&即可 (1)舍弃标准输出,将错误输出到log文件中 nohup ./program > 阅读全文
posted @ 2015-08-06 14:59 chy1000 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 发现还是写一下博客比较好,要不有些很简单的东西都忘记了。mongodb操作/usr/bin/mongod -f /etc/mongodb.conf --smallfiles/usr/bin/mongo localhost:27017 阅读全文
posted @ 2015-08-04 14:40 chy1000 阅读(111) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页