Apache的modrewriteRewriteEngineOnRewriteBase/B2B/website/RewriteRule^article-([0-9]+)\.html$view_details.php?browse=profile&id=$1以上这个测试通过的。如果不行关键是服务器端,以后的怎么改就发挥了关于图片的可以加一个/503(id)/title.htm这样一定不重复了,用503或其他数字或者是abc也行,不顾oabc还想不是很理想,学学ii的,他就是用数字的定义所有的功能就行了这个很有参考价值的<IfModulemod_rewrite.c>Rewrit...
http://www.jb51.net//article/15826.htm
更加坏的事情是,即使你仅仅针对IE设计,不考虑其它浏览器,由于IE模型绝对可以说是一只让人难以捉摸其脾气的怪物,所以你单纯为IE设计也会遇到众多难题,发现很多的效果总是绕来绕去都难以实现。我们都知道,XHTML+CSS的目标就是实现内容与表现分离,理论上对于任何特定一份内容,我们都可以通过CSS实现任何我们想要的表现形式,或者细致地说是布局形式。虽然现实与这个目标有一定差距,但是CSS已经能够满足大多数常见的布局需求,这有CSSZenGarden为证。然而如果你用的是IE,因为它难以捉摸,所以如果你想用一种简单优雅的CSS去让IE能够实现“任何你想要的布局形式”,那是不可能的,只有复杂繁缛的C...
http://www.jb51.net//article/15658.htm
ChcpDisplaysthenumberoftheactiveconsolecodepage,orchangestheconsole'sactiveconsolecodepage.Usedwithoutparameters,chcpdisplaysthenumberoftheactiveconsolecodepage.Syntaxchcp[nnn]Parametersnnn:Specifiesthecodepage.Thefollowingtablelistseachcodepagesupportedanditscountry/regionorlanguage:CodepageCountry...
http://www.jb51.net//article/15609.htm
Apachemod_rewrite规则重写的标志一览R[=code](forceredirect)强制外部重定向强制在替代字符串加上http://thishost[:thisport]/前缀重定向到外部的URL.如果code不指定,将用缺省的302HTTP状态码。F(forceURLtobeforbidden)禁用URL,返回403HTTP状态码。G(forceURLtobegone)强制URL为GONE,返回410HTTP状态码。P(forceproxy)强制使用代理转发。L(lastrule)表明当前规则是最后一条规则,停止分析以后规则的重写。N(nextround)重新从第一条规则开始运...
http://www.jb51.net//article/15602.htm
用以下命令可以查看所有的信号量:#ipcs-s------SemaphoreArrays--------keysemidownerpermsnsems0x0000000019234816nobody60010x0000000019267585nobody60010x0000000019300354nobody60010x0000000019398659nobody60010x0000000019431428nobody60010x0000000019464197nobody60010x0000000019562502nobody6001然后用这行命令删除所有的信号量即可:ipcs-s|grep...
http://www.jb51.net//article/15559.htm
将下面代码保存到err404.html,然后设置404错误页面为err404.html页;[code]<scripttype="text/javascript"language="javascript">varid=/(detial|show)\.asp\?id\=([0-9]+)/gi;varflag=/([a-z0-9_]+)\.asp\?flag\=xml/gi;varre_id=/(detial|show)\_([0-9]+)\.html/gi;varre_flag=/([a-z0-9_]+)\.rss/gi;varhost='blog.ii-home.cn';varss=...
http://www.jb51.net//article/15537.htm
新版本的will_paginate已经抛弃了这样的做法,转而使用gem的方式,本文通过建立一个名为foobar的应用来了解一下will_paginate的用法。==============================C:\>railsfoobar-dmysqlC:\>cdfoobarC:\foobar>rubyscript/generatescaffoldarticletitle:stringcontent:text此时设置一下数据库(C:\foobar\config\database.yml),并且确保相关数据库已经建立好了。C:\foobar>rakedb:mi...
http://www.jb51.net//article/15505.htm
asp.net清空Cookie的两种方法第一种Cookie.Expires=[DateTime];Response.Cookies("UserName").Expires = 0;第二种Response.Cookies["admin"].Expires = DateTime.Now.AddDays(-1); ...
http://www.jb51.net//article/15320.htm
1.中转程序include.inc<?include_once 'include/Base.php';$path = '';$url = isBase::decrypt(urlDecode($_SERVER['QUERY_STRING']));parse_str($url); //获取通过url地址GET传递过来的变量if(!empty($_POST['path'])){ //获取POST传递过来的变量 $path...
http://www.jb51.net//article/15310.htm
我们可以通过一段代码来分析一下其中的微妙差别:<form method="post" action="" name="demoform"><input type="text" name="oDemo" id=”oDemo2” value="DEMO" /></form>在IE浏览器里,我们可以通过多少方法来索引到这个文本框对象?(为区别起见,我们把NAME和ID设成了不同的值)1. oDemo2. demoform.oDemo3. document....
http://www.jb51.net//article/15300.htm
<script type="text/vbscript"> Function str2asc(strstr) str2asc = hex(asc(strstr)) End Function Function asc2str(ascasc)  ...
http://www.jb51.net//article/15238.htm
