[MySQL FAQ]系列 — 快速还原MyISAM表索引 | MySQL 中文网|MySQL文档|MySQL下载|MySQL优化|MySQL培训、解决方案、技术支持 (tags: mysql) Apple苹果中国门户论坛–啃苹果论坛 |中国苹果论坛|苹果网站|Apple|MacOSX|Leopard|Tiger|苹果系统|苹果软件|苹果电脑|啃苹果网旗下网站 – Powered by Discuz! (tags: osx86) 300+ PHP Presentations Online | Webmasters by Design (tags: php) Tsung's Blog | PHP SQL Injection 和 XSS 的偵測程式 和 程式撰寫注意事項 – 2008 (tags: sql_injection php xss) aimini.net : Upload Free Download (tags: mp3) 如何在Mac OSX 中安装 Ati7500 [...]
網路上找來找去…… 沒看到有人寫相關的解法…. 加上不想用mysql-proxy來解這部份… 所以打算從code 的部份下手 看到最後只能動Zend Framework 的code 了(還沒想到可以不動ZF 的code 而做到DB LB的方法) 我是先從function save 下手去找.. Zend/Table/Row/Abstract.php: public function save() [sourcecode language='php'] public function save() { /** * If the _cleanData array is empty, * this is an INSERT of a new row. * Otherwise it is an UPDATE. */ if (empty($this->_cleanData)) { return $this->_doInsert(); } [...]
1. 下載 Zend Framework 1.6.0 RC 2 http://framework.zend.com/download 2. 建立專案目錄 (/home/kiang/public_html/zf/) ,將下載檔案解壓縮後的 library 目錄複製到專案目錄 /home/kiang/public_html/zf/library 3. 建立基本目錄結構 [cc lang="ini" tab_size="2" lines="40"]kiang@kiang-ubuntu:~/public_html/zf$ mkdir application public kiang@kiang-ubuntu:~/public_html/zf$ cd application/ kiang@kiang-ubuntu:~/public_html/zf/application$ mkdir controllers models views configs kiang@kiang-ubuntu:~/public_html/zf/application$ cd ../public/ kiang@kiang-ubuntu:~/public_html/zf/public$ mkdir css images js[/cc] 4. 建立 /home/kiang/public_html/zf/.htaccess ,將所有請求引導到 public 目錄 [cc lang="apache" tab_size="2" lines="40"]RewriteEngine on RewriteBase /~kiang/zf/ RewriteRule [...]
Nabble – Zend DB – Handling replicated MySQL databases (tags: zendframework) JSCookMenu JavaScript Menu Home Page (tags: js css) Join Problems with Zend_Paginator and Zend_Db_Select objects | Let's explore the web technologies together (tags: zendframework) Tommy 碎碎念 : 修正 Gallery 2.2 產生空白 install_registry.reg 檔案的問題 (tags: Gallery2)
www.pudn.com – 最大的源码下载中文网站 源代码40多万个 (tags: Programming) 網風資源網 (tags: Programming) my.cnf自动生成器[试用版] | MySQL 中文网|MySQL文档|MySQL下载|MySQL优化|MySQL培训、解决方案、技术支持 (tags: MySQL)
Drupal 教學 | JOE Tsui's Drupal site (tags: drupal) 65 Excellent jQuery Resources (tutorials,cheat sheets,ebooks,demos,plugins…) | Speckyboy – WordPress and Design (tags: jQuery) OC查價王 OCPRICE (tags: 光華) BlueprintCSS alive again | zerokspot.com (tags: css) Doctrine – Open Source PHP ORM (tags: php orm) 9.2. Zend_Db_Select (tags: zendframework) memcached的分布式算法-Consistent Hashing | 排头兵-互联网技术开发实践 (tags: memcached) Zend_Db_Table and tables [...]
[cc lang="php" tab_size="2" lines="40"]public function __construct(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = array()) { $this->setRequest($request) ->setResponse($response) ->_setInvokeArgs($invokeArgs); $this->_helper = new Zend_Controller_Action_HelperBroker($this); $this->init(); }[/cc] 在zf 每個 controller 中 可以用function init 這個去代替__constructor (不知道這樣形容 恰不恰當) Whenever Zend Framework instantiates a controller, the base Zend Framework class (in our case Zend_Controller_Action) has a lot of important code in the [...]