Justwinit - justwinit.cn - 向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除

Latest News:

curl的超时时间 :curl如果需要进行毫秒超时,cURL 7.16.2中被加入,从PHP 5.2.3起可使用。 27 Aug 2013 | 02:00 pm

curl如果需要进行毫秒超时,需要增加: curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L); 或者是: curl_setopt ( $ch,  CURLOPT_NOSIGNAL, true); 是可以支持毫秒级别超时设置的 [codes=php] <?php if (!isset($_GET['foo'])) { // Clien...

[聊天加密]前端crypto-js AES加密 PHP后端解密 27 Aug 2013 | 07:19 am

crypto-js提供了多种常用加密算法的JS库。这里不多解释。 这里主要讲 前端使用crypto-js AES加密后,php解密。 前端js <script src="http://crypto-js.googlecode.com/svn/tags/3.0.2/build/rollups/aes.js"></script> <script src="http://crypto-js.goo...

php时区设定,确保date()返回正确的本地时间 23 Aug 2013 | 02:27 pm

背景:做了个聊天程序,发现后面的时间显示有问题。 问题:echo date('Y-m-d H:i:s'); 输出结果与本地时间相差8小时。一看就知道我们神州大地是在东八区,时区错了。 两种解决方法: 1.加入date_default_timezone_set('PRC');//手册上说这个是PHP5.1后才有的 2. 修改php.ini [Date] ; Defines the defau...

php-fpm的hosts访问问题记录 23 Aug 2013 | 07:17 am

早上遇到一个php-fpm的问题: 以前设置了host,后去掉这个host后到公网后发现这个fastcgi还是用的以前那个host,出现找不到host了(用shell下的curl是Ok的),后查来查去,重启了下php才好了,是怎么回事? 群里: 必须这样,我遇到很多次了,都记住了,估计估计是有dns缓存是有dns缓存。

[实践OK]怎么使chrome(谷歌google浏览器)全屏的代码? 20 Aug 2013 | 07:06 pm

实践Ok,确实能全屏,这样在cmd下和linux下都是可行的: ............

树莓派(Raspberry PI)上的Python GUI实现(学习+总结) 20 Aug 2013 | 04:42 pm

1 准备SD卡8G以上 编译过程中,会耗用大量存储空间,4G不够用的。 2 更新资源的索引清单 sudo apt-get update (从服务上下载索引清单) sudo apt-get upgrade (比较索引清单,更新依赖关系) 3 安装 python-dev sudo apt-get install python-dev 否则在编译SIP时,会提示 fatal error: Python....

How to set my Raspberry Pi to boot into the GUI?树莓派(raspberry)启用root账户 20 Aug 2013 | 04:40 pm

As from my previous question, I asked what the power off button in the corner does. Then somebody said if you boot into the GUI automaticlly, it will give you some options. My question is, How to boot...

Raspberry Pi sous vide water bath,Improved temperature control for Raspberry Pi sous vide。 19 Aug 2013 | 05:42 pm

I’ve been very happy with the results from my Raspberry Pi controlled water bath for sous vide cooking, but I knew that the control loop could be improved. Past runs show fairly continued oscillation:...

chrome浏览器有没有快速翻译网页的插件,有道划词取词插件。 19 Aug 2013 | 05:33 pm

背景:在一些国外网站上有一两个,两三个英语单词不认识,为此需要一个翻译的划词插件。如果仅仅是外语翻译,装个有道划词插件吧。 官网: http://cidian.youdao.com/chromeplus/ https://chrome.google.com/webstore/detail/%E6%9C%89%E9%81%93%E8%AF%8D%E5%85%B8chrome%E5%88%92%E8...

Related Keywords:

Sphinx search, web qq, foreach continue, centos5.1 mysql 5.5.10, c 用途 未来, centos5.1 mysql 5.5.10 安装, rpm php5.3.6, joomla jv alber下载, centos php5.3.6

Recently parsed news:

Recent searches: