1
domainname 2012-03-21 05:48:23 +08:00
什么功能不能用?
怎么感觉你的问题是zend源码问题? |
2
Bob OP zend加密我也反加密过了,里面的代码我也看过,看不太懂里面的代码。代码应该没有问题,我是完整拷贝的,也不是绑定域名的。绑定IP代码我没有看见。
|
3
Bob OP class tdworkclass
{ var $dbLinkUser = "zte_cjw"; var $dbLinkPass = "c23ww138"; var $dbLinkBase = "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST= 134.192.114.7)(PORT=1522)))(CONNECT_DATA=(SID=crm)))"; var $sqlList; var $sqlParam; function tdworkclass( $id ) { $query = "select td_sql_id,td_sql_val,td_sql_order,param_code,param_order,param_type from v_td_sql_param where td_id='".$id."' order by td_sql_order,param_order"; $function = $this->gettdfunction( ); $data = $function->runselect( $query ); if ( $data ) { $j = 0; for ( ; $j < count( $data ); ++$j ) { if ( $data[$j][3] ) { $Param[$data[$j][0]][] = $data[$j][3]; } $List[$data[$j][0]] = $data[$j][1]; } $this->setsqlarr( $Param ); $this->setsqllist( $List ); } } function getdbase( ) { $dbase = new oradb( ); $dbase->open( $this->dbLinkBase, $this->dbLinkUser, $this->dbLinkPass ); return $dbase; } function gettdfunction( ) { return new functionclass( ); } function setsqlarr( $arr ) { $this->sqlParam = $arr; } function setsqllist( $arr ) { $this->sqlList = $arr; } } ?> |
4
Bob OP 就这个代码看得不是很明白、
|
5
Bob OP 是连接远程数据库?但那个host134.192.114.7 连不上 也ping不通。
|
6
knight1111 2012-03-21 11:33:37 +08:00
你既然都安装了数据库,干嘛非连接远程的,连接本地的就行啦
|
7
Bob OP <?php
$dbhost = "127.0.0.1"; $dbuname = "crmtest"; $dbpass = "cjw7we138"; $dbname = "(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST= ".$dbhost.")(PORT=1521)))(CONNECT_DATA=(SID=ORCL)))"; $database = "oracle"; $pconnect = 0; $tablepre = "oa_"; $sys_fy = "15"; ?> 这个才是连接本地的啊~~上面那个是远程的吗? |
8
Bob OP 是连接远程的OA数据库吗@knight1111 @domainname
|
9
Bob OP 那可以把这个远程连接的代码注释掉吗 功能不影响的情况下、
|