09 2010 档案
摘要:WebService应用中如果收到的信息非常大时出错。1:Maximum message size quota for incoming messages (65536) has been exceeded.已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。说明: 执行当前 Web 请求期间,出现未处理的异常。...
阅读全文
摘要:网页 前进,后退N为正数时前进N页,N为负数是后退N页比如history.go(-1)后退一页,history.go(1)前进一页<script language=javascript> history.go(N)</script><input type=button value="后退" onClick="history.back(-1)" ><a c...
阅读全文
摘要:PHP中的MYSQL常用函数1、mysql_connect()-建立数据库连接格式: resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])例: $conn = @mysql_connect("localhost", "username"...
阅读全文
摘要:switch 语句:switch ($label){case "个人信息": continue; break;case "同事":continue; break;case "系统管理":continue;break;}foreach 语句:foreach ($attributevalue as $label => $url) {$xtpl->assign("GCL_LABEL", $l...
阅读全文
摘要:<?php $FileID=date("Ymd-His") . '-' . rand(100,999); //$FileID为 20100903-132121-908 这样的的随机数?><?phpfunction randomkeys($length){$pattern='1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLOMNO...
阅读全文
摘要:$bean->StopTime=date("Y-m-d H:i:s");// 当前时间$one = strtotime($bean->StartTime);$tow = strtotime($bean->StopTime);$len = $tow - $one; //得出时间戳差值$bean->TimeLen=$len; //时间差 秒date_default_timezo...
阅读全文