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

2012年2月16日

摘要: USINGYou can use the module by loading it in your PHP script and calling SQL Relay functions.For example:dl("sql_relay.so");$con=sqlrcon_alloc("adasz",9000,"","user1","password1",0,1);$cur=sqlrcur_alloc($con);sqlrcur_sendQuery($cur,"select table 阅读全文
posted @ 2012-02-16 14:40 kudosharry 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Establishing a SessionTo use SQL Relay, you have to identify the connection that you intend to use.<? dl("sql_relay.so"); $con=sqlrcon_alloc("host",9000,"","user","password",0,1); ... execute some queries ... sqlrcon_free($con);?>An alternative 阅读全文
posted @ 2012-02-16 14:39 kudosharry 阅读(311) 评论(0) 推荐(0) 编辑

2012年2月13日

摘要: 1. 关键字回顾:RFC(Request For Comments) ,RFC文档是一系列关于Internet(早期为ARPANET)的技术资料汇总,于1969年开始发布。它制定了我们很多常见和不常见的Internet的各种文字资料和规范。URI(Universal Resource Identifiers) 统一资源标识符, RFC 文献1630中定义了它详细的规范(1994年6月) URL(Uniform Resource Locators) 统一资源定位符,RFC文献1738中定义了它详细的规范(1994年12月)在URI的规范中,资源描述文字,只允许使用字母,数字,安全字符,特殊字符, 阅读全文
posted @ 2012-02-13 16:03 kudosharry 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 一、注释“--”为注释一行“--[[” 开头到 “]]”结尾为注释一段,在注释中“[[”和“]]”是可以嵌套的二、LUA语句之间使用空格或者分号“;”隔开,如果多个语句写在同一行,建议用分号隔开。条件控制语句: if 条件 then ... elseif 条件 then ... else ... endwhile循环: while 条件 do ... endRepeat循环: repeat ... until 条件For循环: for 变量=初值,终值,步长 do ... end for 变量1,...,变量N in 表或枚举函数 do ... end注意,for的循环变量只作用于f... 阅读全文
posted @ 2012-02-13 15:16 kudosharry 阅读(429) 评论(0) 推荐(0) 编辑

2012年2月10日

摘要: 一、SQL Relay是什么? SQL Relay是一个开源的数据库池连接代理服务器 二、SQL Relay支持哪些数据库? * Oracle * MySQL * mSQL * PostgreSQL * Sybase * MS SQL Server * IBM DB2 * Interbase * Sybase * SQLite * Lago * ODBC * MS Access三、安装和配置; 不说废话了,开始安装SQL Relay,到 http://sqlrelay.sourceforge.net/ 去下载相应的... 阅读全文
posted @ 2012-02-10 16:17 kudosharry 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 由于我们才刚刚准备开始使用SQL Relay,所以这片文章的翻译还有很多我们不理解的地方,可能导致翻译上的问题,所以这篇文章只能作为一个小小的参考。也希望朋友们在看过后指出问题,让更多的人来使用它。 REDRYM by:2007-03-22 15:33翻译: pacman校对: 雪狼贝贝血色整理: KAADA、REDRUMMAIL: xcy_0001@hotmail.comBY: 2007-03-22====================正文====================SQL-relay PHP modulePHP APIUSINGFUNCTIONSAUTHORUSINGFUNC 阅读全文
posted @ 2012-02-10 16:11 kudosharry 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 这是针对sqlrelay.class.php的说明。 sqlrelay.class.php是对SQL Relay PHP API的封装,使其接近PHP PDO,方便本人日后使用。[PHP Pear DB提供对SQL Relay的支持,但是本人不习惯用这东西。] sqlrelay.class.php请点击下载:查看或下载sqlrelay->__construct(string $host, int $port, string $user, string $password) 创建一个SQL Relay连接,各个参数意义都很明确,不需要细说。 在内部执行的是“sqlrcon_alloc($h 阅读全文
posted @ 2012-02-10 16:08 kudosharry 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 此文档翻译自SQL Relay官方文档的PHP API,地址为:http://sqlrelay.sourceforge.net/sqlrelay/api/php/doc.html如果需要例子等更详细说明,见这里:http://sqlrelay.sourceforge.net/sqlrelay/programming/php.html注意,此翻译并非严肃严谨的翻译,不保证意思明确无误。注意:sqlrconref和sqlrcurref之间的细小差别,sqlrcon_ 和sqlrcur_ 之间的细小差别。一个例子:dl("sql_relay.so");$con=sqlrcon_a 阅读全文
posted @ 2012-02-10 16:07 kudosharry 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 程序里helloworld1. 最简单的hello worldlocation /hello { echo "hello world!";}2. 异步请求其他echo请求location /hellotwo { echo "hello world?"; echo_location_async /hello;}3. 输出GET请求参数,假设参数名是name,这里并对name参数进行解码location /hellothree { set_unescape_uri $name $arg_name; set_if_empty $name "None& 阅读全文
posted @ 2012-02-10 11:32 kudosharry 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 最近试用了几个@agentzh写的第三方Nginx模块,甚为愉悦,没想到在Nginx可以玩很多技巧和扩展,分享一下。本文尝试的几个模块大概分为:echomemcachednginxlua详细模块地址分别为:ngx_devel_kit https://github.com/simpl/ngx_devel_kitset-misc-nginx-module https://github.com/agentzh/set-misc-nginx-modulememc-nginx-module https://github.com/agentzh/memc-nginx-moduleecho-nginx-mo 阅读全文
posted @ 2012-02-10 11:11 kudosharry 阅读(865) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页

导航