我最近一直在阅读,TableData Gateway和RowData Gateway.根据"企业应用程序架构的模式",RDG一次处理一条记录,TDG处理整个表.但这两种模式看起来非常相似,它们封装了SQL查询并根据我们的查询返回单个记录或记录集中的许多记录.我无法确定何时更喜欢TDG用于RDG.用一些解释澄清差异将非常有帮助.根据Martin Fowler TDG是当RDG返回一条记录时,它与RDG相同.但我们也可以将RDG用于多个记录!那么为什么要使用TDG.任何帮助将不胜感激.谢谢.
xdebug服务器不连接到端口9000上的任何客户端,即:netbeans IDE,debugclient等.xdebug显示在phpinfo输出中.上述客户端继续等待建立连接.当我尝试运行时来自cli的php脚本它给出了以下警告消息:
"PHP警告:模块'xdebug'已在第0行的未知中加载" 9000端口已打开并显示在netstat --numeric-port -l命令中.我不知道可能出了什么问题.我检查了所有配置文件,一切似乎都没问题.任何帮助将不胜感激.我的配置文件部分
Linux abc.localdomain 3.1.1-2.fc16.x86_64 #1 SMP Mon Nov 14 15:46:10 UTC 2011 x86_64
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans
[Zend]
zend_extension=/usr/lib64/php/modules/xdebug.so
[XDebug]
xdebug.remote_enable=On
xdebug.remote_autostart=On
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.remote_log=/var/log/xdebug.log
Run Code Online (Sandbox Code Playgroud)
php_api没有.一致
Xdebug Simple DBGp客户端(0.10.0)版权所有2002-2007 Derick Rethans. - libedit支持:已启用
等待调试服务器连接.
这是黑魔法!!
谢谢
我尝试使用 CPAN 安装一些模块,但每个模块都出现以下错误。
CPAN installation problem " Package contains both files[bignum-0.30.tar] and directories[bignum-0.30]; not recognized as a perl package, giving up, won't make".
Untarred RRD-Simple-1.44.tar successfully
Package contains both files[RRD-Simple-1.44.tar] and directories[RRD-Simple-1.44]; not recognized as a perl package, giving up
Package contains both files[RRD-Simple-1.44.tar] and directories[RRD-Simple-1.44]; not recognized as a perl package, giving up, won't make
Running Untarred RRD-Simple-1.44.tar successfully
Package contains both files[RRD-Simple-1.44.tar] and directories[RRD-Simple-1.44]; not recognized as a perl package, giving up
Package contains both files[RRD-Simple-1.44.tar] and directories[RRD-Simple-1.44]; …Run Code Online (Sandbox Code Playgroud)