导航

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 61 下一页

2013年10月10日

摘要: ZendServer根据开发环境和产品环境的不同情况,对php.ini中的一些选项做了建议设置,列表如下:;;;;;;;;;;;;;;;;;;;; Quick Reference ;;;;;;;;;;;;;;;;;;;;; The following are all the settings which are different in either the production; or development versions of the INIs with respect to PHP's default behavior.; Please see the actual sett 阅读全文

posted @ 2013-10-10 15:38 eastson 阅读(420) 评论(0) 推荐(0) 编辑

摘要: Drupal在配置阶段的最开始就设置了自己的错误处理器和异常处理器:function _drupal_bootstrap_configuration() { set_error_handler('_drupal_error_handler'); set_exception_handler('_drupal_exception_handler'); // ... ...}先来看看错误处理器_drupal_error_handler()是如何做的?function _drupal_error_handler($error_level, $message, $file 阅读全文

posted @ 2013-10-10 11:48 eastson 阅读(1286) 评论(0) 推荐(0) 编辑

2013年10月9日

摘要: 天天趴在电脑前工作,如果只是使用右手来拿鼠标,不仅对手腕不好,长久以来估计对腰也不好。桌面电脑可以很方便地设置成使用左手鼠标模式,这样,左右手换一换,可能会是一个好事。可是当你在写文档、编代码的时候,要用上 Ctrl+v、Ctrl+c、Ctrl+x 这些快捷键时,总不能用右手别扭着按键盘吧?把左手从鼠标拿开,再来按这些键,显然是一种更没有效率的做法。这个时候,可以用AutoHotkey这个软件,来重新定义这几个快捷键。我的习惯是,使用 Ctrl+/ 来代替 Ctrl+x,使用 Ctrl+. 来代替 Ctrl+c,使用 Ctrl+, 来代替 Ctrl+v,并且使用 Ctrl+; 来代替 Win+ 阅读全文

posted @ 2013-10-09 16:39 eastson 阅读(1642) 评论(0) 推荐(1) 编辑

摘要: 文章来源:http://www.cnblogs.com/ghj1976/archive/2010/07/19/1780844.html在 drupal 跟目录下有个 .htaccess 文件, 这个文件中就有URL地址重写的配置信息,配置信息如下:# Various rewrite rules. RewriteEngine on # If your site can be accessed both with and without the 'www.' prefix, you # can use one of the following settings to redirec 阅读全文

posted @ 2013-10-09 16:10 eastson 阅读(253) 评论(0) 推荐(0) 编辑

摘要: 1.启用memcache代替Mysql的缓存表处理缓存数据。2.添加一个opcode缓存可以让 PHP能够重用前面编译过的代码,这样就会跳过解析和编译。常见的opcode缓存有Alternative PHP Cache (http://pecl.php.net/package/APC), eAccelerator (http://eaccelerator.net), XCache (http://trac.lighttpd.net/xcache/)3.Session放到数据库=》memcache处理。同时利于多个服务器的扩展。4.PHP允许你控制多长时间清除一次旧的会话记录。Drupal将这一 阅读全文

posted @ 2013-10-09 15:59 eastson 阅读(575) 评论(0) 推荐(0) 编辑

摘要: 网上看到一篇介绍Drupal与phpbb整合的文章。浏览了一下,真心地不错。于是就想将与整合有关的文章做一个汇总,以备不时之需:Drupal7整合PHPBB论坛Drupal 7 整合 Vanilla 论坛drupal与ucenter的集成的模块ucenterzencart与drupal整合(第1天)——zencart基础操作教程zencart与drupal整合(第2天)—zencart模块调用机制zencart与drupal整合(第3天)—将zencart与drupal组合成一个网站Drupal 集成 Question2Answer(用户整合)Drupal与MediaWiki 整合教程-Aut 阅读全文

posted @ 2013-10-09 15:10 eastson 阅读(319) 评论(0) 推荐(0) 编辑

摘要: 什么意思?意思是说,假如你有这样的需求,需要将cache_page缓存到数据库,其它的都缓存到memcache,这该怎么办?看看_cache_get_object()的实现你就会知道上面的问题该怎么处理了:function _cache_get_object($bin) { static $cache_objects; if (!isset($cache_objects[$bin])) { $class = variable_get('cache_class_' . $bin); if (!isset($class)) { $class = variable_get(... 阅读全文

posted @ 2013-10-09 14:18 eastson 阅读(271) 评论(0) 推荐(0) 编辑

摘要: Drupal许多的函数中都使用了静态变量。按照通常的用法,静态变量的使用应该是这样的:function drupal_set_title($title = NULL) { static $stored_title; if (isset($title)) { $stored_title = $title; } return $stored_title;}但是Drupal使用的方式有些不同。主要的考量应该是这样:可能会有几十上百个函数中使用了静态变量,Drupal需要在某一时刻对这些静态变量都做reset处理。这个时候,不可能对这几十上百个函数都重新调用一次。因此,Drupal需要一... 阅读全文

posted @ 2013-10-09 11:20 eastson 阅读(290) 评论(0) 推荐(0) 编辑

2013年10月8日

摘要: 页面缓存是什么意思?有些页面浏览量非常大,而且与状态无关,这类页面就可以使用页面缓存技术。在页面第一次请求完毕以后,将响应结果保存起来。下一次再请求同一页面时,就不需要从头到尾再执行一遍,只需要将第一次执行的响应结果获取出来,直接返回给使用者就行了。什么样的页面请求可以缓存?Drupal使用函数drupal_page_is_cacheable()区分哪些请求可以缓存:function drupal_page_is_cacheable($allow_caching = NULL) { $allow_caching_static = &drupal_static(__FUNCTION__, 阅读全文

posted @ 2013-10-08 16:55 eastson 阅读(986) 评论(0) 推荐(0) 编辑

摘要: 配置是Drupal启动过程中的第一个阶段,通过函数_drupal_bootstrap_configuration()实现:function _drupal_bootstrap_configuration() { set_error_handler('_drupal_error_handler'); set_exception_handler('_drupal_exception_handler'); drupal_environment_initialize(); timer_start('page'); drupal_settings_init 阅读全文

posted @ 2013-10-08 11:19 eastson 阅读(588) 评论(0) 推荐(0) 编辑

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 61 下一页