解读FriendFeed对MySQL的使用[转老王]
Posted on 3月 9, 2009
Filed Under mysql | 2 Comments
如何才能规避MySQL中DDL的堵塞问题?FriendFeed给出了答案:How FriendFeed uses MySQL to store schema-less data。
DDL指的是CREATE,DROP,ALTER之类的操作。当在MySQL中使用它们时,比如说添加一个索引,一个...
PHP Developer Resources
Posted on 3月 6, 2009
Filed Under php | Leave a Comment
PHP is one of the most popular scripting languages used to develop applications on the web today. As a result, internet.com has a multitude of PHP resources throughout our network of websites. Here are some of our best PHP resources, along with some f...
PHP OPCode Viewer opdumper (windows or linux)
Posted on 3月 6, 2009
Filed Under linux, php | Leave a Comment
windows下的opdumper: 下载PHP OPCode Viewer opdumper
linux下的opdumper:下载PHP OPCode dumper
使用PHP Embed SAPI实现Opcodes查看器[转]
Posted on 3月 6, 2009
Filed Under php | Leave a Comment
使用PHP Embed SAPI实现Opcodes查看器
· 作者:laruence(http://www.laruence.com/)
· 本文地址: http://www.laruence.com/2008/09/23/539.html
· 转载请注明出处
PHP提供了一个Embed SAPI,也就是说,PHP容...
MySQL优化方法保存
Posted on 3月 5, 2009
Filed Under mysql | Leave a Comment
thread_concurrency
数量设置为CPU核心数量的两倍.
thread_cache_size
按照内存大小来设置, 1G=8, 2G=16, 3G=32, >3G=64
wait_timeout
超时时间,如果连接数比较大,可以减少此参数的值,我使...
MySQL配置文件例子翻译
Posted on 3月 5, 2009
Filed Under mysql | Leave a Comment
#BEGIN CONFIG INFO
#DESCR: 4GB RAM, 只使用InnoDB, ACID, 少量的连接, 队列负载大
#TYPE: SYSTEM
#END CONFIG INFO
#
# 此mysql配置文件例子针对4G内存
# 主要使用INNODB
#处理复杂队列...
使用snoopy提交数据实现登陆实例[转]
Posted on 3月 5, 2009
Filed Under php | Leave a Comment
模拟登陆可以用curl或者socket来实现,当curl需要服务器相应的启用curl module,自己socket实现相对比较麻烦,使用snoopy就简单了很多啦。
在这里,我们使用喜悦国际村做为例子。(^_^,...
php函数,相对路径转化成绝对路径[转]
Posted on 3月 5, 2009
Filed Under php | Leave a Comment
提取 Gregarius中的一个函数。可以把网页中的相对路径自动转化成绝对路径。
<?
function relative_to_absolute($content, $feed_url) {
preg_match(’/(http|https|ftp):\/\//’, $fe...
详细介绍PHP编译缓存机制[转]
Posted on 3月 5, 2009
Filed Under linux, php | Leave a Comment
如果你想提高PHP项目的运行速度,编译缓存应该是你的选择之一。安装一个编译缓存能到产生极大的性能提升。目前最常见的PHP编译缓存工具有:APC,Accelerator,xcache(国产)等等。关于三者...
Table ‘mysql.proc’ doesn’t exist
Posted on 3月 5, 2009
Filed Under mysql | Leave a Comment
如果MySQL升级到新的版本后,出现”1146 - Table ‘mysql.proc’ doesn’t exist”的错误,那么还需要升级一下系统表,可使用MySQL自带的mysql_fix_privilege_tables或 mysql_upgrade命令来修复一下.
注:自5...