脚 本 之 家 www.jb51.net
页面导航:  不限条件-->At
本地搜索:
<?phpob_start();setcookie("username","宋岩宾",time()+3600);echo"theusernameis:".$HTTP_COOKIE_VARS["username"]."\n";echo"theusernameis:".$_COOKIE["username"]."\n";print_r($_COOKIE);?>Warning:Cannotmodifyheaderinformation-headersalreadysentby出错的原因我在php程序的头部加了,header("cache-control:no-cache,must-rev...
http://www.jb51.net//article/16106.htm
其实tomcat中配置数据源有好几中方式,很灵活,所以也容易相互整窜,个人认为比较简单的方法就是在tomcat下的conf文件夹下的server.xml增加[code]<Contextpath="/test"docBase="test"debug="99"reloadable="true"crossContext="true"verbosity="DEBUG"><Resourcename="jdbc/***"auth="Container"type="javax.sql.DataSource"password="****"driverClassName="com.micros...
http://www.jb51.net//article/16096.htm
Positoin属性有四个值:static、fixed、absolute和relative,后面两个在布局中的定位里是经常用到的,顾名思义,absolute是指绝对定位,即将对象从文档流中拖出,使用left,right,top,bottom等属性进行绝对定位,而其层叠通过z-index属性定义。此时对象不具有边距,但仍有补白和边框。ralative是指相对定位,就是依据left,right,top,bottom等属性在正常文档流中偏移位置。  但是,怎么个绝对法,又怎么个相对法呢?以前我一直没有仔细去研究它,到具体应用时有时会有点迷糊,我相信很多朋友也会有这样的问题。今天我特意测试了一下,得出...
http://www.jb51.net//article/16079.htm
使用eAccelerator加密PHP程序[code]#/usr/local/bin/encoder[/code]执行后会看到简单的使用说明:[code]Usage:encoder[options]source_file_nameencoder[options]source_file_name...encoder[options]source_directory_name...Options:-ssuffixencodefilesonlywithfollowingsuffix(defaultis"php")-aencodeallfiles(nobydefault)-lfollowsymboli...
http://www.jb51.net//article/16074.htm
base64+gzinflate压缩编码(加密)过的文件通常是以<?eval(gzinflate(base64_decode(为头的一个php文件。以下我们给出了相关的编码解码(加密解密)代码。压缩编码(加密)代码:[code]<?phpfunctionencode_file_contents($filename){$type=strtolower(substr(strrchr($filename,'.'),1));if('php'==$type&&is_file($filename)&&is_writable($filename)){//如果是PH...
http://www.jb51.net//article/16070.htm
1<propertyname="hibernateProperties">2<props>3<propkey="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>4<propkey="hibernate.show_sql">false</prop>5<!--Create/updatethedatabasetablesautomaticallywhentheJVMstartsup6<propkey="hibernate.hbm2ddl.auto">update</prop>-->7<!--Turnbatchingofffo...
http://www.jb51.net//article/16040.htm
示例数据表:team(班级)、certificate(身份证)、student(学生)Team.hbm.xml<?xmlversion="1.0"encoding="utf-8"?><!DOCTYPEhibernate-mappingPUBLIC"-//Hibernate/HibernateMappingDTD3.0//EN""http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"><!--   MappingfileautogeneratedbyMyEclipsePer...
http://www.jb51.net//article/16039.htm
[code]::Sleep.bat-Sleep/Delay/Waitnseconds::HerbertKleebauer(Germany)-2005/05/29::ModifiedbyWillSort-2005/06/02@echooffechoq|debug>nulechoBj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>sleep.comecho0DxFP,0Xx.t0P,=XtGsB4o@$?PIyUWwX0GwUYWv;ovBX2Gv0ExGIuht6>>sleep.comechoT}{z~~@...
http://www.jb51.net//article/16038.htm
nowbegin:step1:建立数据库连接池.1.从Tomcat的主页上下载Tomcat5.5.27,推荐绿色版(zip),不用为重做系统而发愁.2.下载Tomcat5.5.27的admin包,解压缩后覆盖Tomcat5.5.27的根目录.3.在Tomcat5.5.27的根目录下conf文件夹里的tomcat-users.xml里,</tomcat-users>之前加上一行<userusername="admin"password="admin"roles="admin,manager"/>既admin包的登陆账号,用户名admin,密码admin.4.用IE登陆ht...
http://www.jb51.net//article/16036.htm
dao层接口:Java代码[code]packagecom.last999.im.news.dao;importjava.util.*;importcom.last999.im.news.entity.KindEntity;importcom.last999.im.news.web.PageTool;publicinterfaceKindEntityDao{publicKindEntityget(Stringuuid);publicvoidsave(KindEntitykindEntity);publicvoidupdate(KindEntitykindEntity);publicvoidde...
http://www.jb51.net//article/15976.htm
可见使用Hibernate,在进行查询分页的操作上,是具有非常大的灵活性,Hibernate会首先尝试用特定数据库的分页sql,如果没用,再尝试Scrollable,如果不行,最后采用rset.next()移动的办法。(一)pager类*@(#)Pager.java2005-5-3**Copyright(c)2005,JeffreyHsu*/packagecom.jeffrey.messagelove;/***Pagerholdsthepageinfo.*/publicclassPager{privateinttotalRows=0;//记录总数privateinttotalPages=0;/...
http://www.jb51.net//article/15975.htm
共有:549/10,当前4/55页  [首页] [上一页] 1 2 3 4 5 6 7 8 [下一页]  [尾页] 转到: