$xml = simplexml_load_fi...
阅读:26
评论:0
class jsonToXml { public static function convert($data, DOMDocument $dom = null, DOMElement $xml = null) { if(!$dom) { $dom = new DOMDocument('1.0', 'UTF-8'); $dom->formatOutput = true; } if(!$xml) { $xml = $dom->createElement('xml'); $xml->setAttribute('root', 'http...
阅读:901
评论:1
阅读:448
评论:0
/*MSSql的操作类*/ class MSSql { var $link; var $querynum = 0; /*连接MSSql数据库,参数:dbsn->数据库服务器地址,dbun->登陆用户名,dbpw->登陆密码,dbname->数据库名字*/ function Connect($dbsn, $dbun, $dbpw, $dbname) { if($this->link = @mssql_connect($dbsn, $dbun, $dbpw, true)) { $query = $this->Query('SET TEXTSIZE 2147483647'); if (@mssql_select_db($dbname, $this->link)...
阅读:243
评论:0