`
文章列表
begin;INSERT INTO `dev_dgc`.`user_datas` (`id`, `game_id`, `created`) VALUES (NULL,  '1', '2');INSERT INTO `dev_dgc`.`user_datas` (`id`, `game_id`, `created`) VALUES (NULL,  '1', '2');INSERT INTO `dev_dgc`.`user_datas` (`id`, `game_id`, `created`) VALUES (NULL,  '1', '2');commit;       $this-> ...
出处:http://hudeyong926.iteye.com/blog/729193 <?php echo date("Ymd",strtotime("now")), "\n"; echo date("Ymd",strtotime("-1 week Monday")), "\n"; echo date("Ymd",strtotime("-1 week Sunday")), "\n" ...
首先要知道你使用的Mac OS X是什么样的Shell,使用命令echo $SHELL 如果输出的是:csh或者是tcsh,那么你用的就是C Shell。 如果输出的是:bash,sh,zsh,那么你的用的可能就是Bourne Shell的一个变种。 Mac OS X 10.2之前默认的是C Shell。 Mac OS X 10.3之后默认的是Bourne Shell。 我的mac 10.7.2是bash, Bourne Shell   1.把你要添加的环境变量添加到你主目录(cd ~)下面的.profile或者.bash_profile,如果存在没有关系添加进去即可,如果 ...
  /usr/lib/php/extensions/no-debug-zts-20060613/xxx.so /usr/lib/php/extensions/no-debug-non-zts-20090626/xxx.so   $ php -i | grep extension_dir extension_dir => /usr/lib/php/extensions/no-debug-zts-20060613 => /usr/lib/php/extensions/no-debug-zts-20060613       php ...
抄摘:我为什么选择MongoDB   mongodb是从09年开始关注,从最初的一些文档可以看出这家伙是来解决实际问题的,mongodb的作者们对mysql+memcached 这套东西的优势和弊端看的非常清楚,项目的设计对我们这些lamp程序员来说,也有天 ...
PHP5 的对象新增了一个专用方法 __call(),这个方法用来监视一个对象中的其它方法。如果你试着调用一个对象中不存在的方法,__call 方法将会被自动调用。   __call() is triggered when invoking inaccessible methods in an object context. __callStatic() is triggered when invoking inaccessible methods in a static context.   <?phpclass MethodTest {    public funct ...
原文地址:http://blog.nosqlfan.com/html/3208.html   Cacti 是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。被广泛的用于对服务器的运维监控中,Cacti提供了一种插件式的管理,只要按要求写好特定的模板,那么你就可以对任何服务进行流量监控 。本文就是要为大家介绍两个模板,分别是MongoDB 和Redis 的Cacti模板,使用它,你可以对你的MongoDB和Redis服务进行流量监控。   使用Cacti监控MongoDB和Redis 作者:nosqlfan on 星期天 ...
在通过ajax向php程序中传递数据时,会发现使用$_POST根本无法获取数据.但是在firebug中可以看到post中其实是有json数据的.  在使用 print_r(file_get_contents("php://input")) 之后,却可以得到json数据   那什么是php://input呢? 对php://input的介绍,PHP官方手册文档有一段话对它进行了很明确地概述。     “php://input allows you to read raw POST data. It is a less memory intensive alt ...
代码转载:http://txf2004.iteye.com/blog/612507   作者:txf2004  标题:一致性哈希 主要实现了一致性哈希的算法,php界相当优秀的代码。谢谢txf2004。 <?php /** * Flexihash - A simple consistent hashing implementation for PHP. * * The MIT License * * Copyright (c) 2008 Paul Annesley * * Permission is hereby granted, free of ch ...
Global site tag (gtag.js) - Google Analytics