四月 19th, 2009
<%
t1=timer()
usephones=Request.ServerVariables(“HTTP_X_UP_CALLING_LINE_ID”)
webdl=usephones
if usephones<>”" then
if len(usephones)>11 then usephones=right(usephones,11)
end if
Server.ScriptTimeout=999
※ 阅读全文 »
二月 19th, 2009
有时候买一个虚拟空间,足可以放N个站点,一般只要把各站点的对应域名都绑在这个虚拟空间的IP上,然后使用以下代码便可实现空间共享,站点独立 的效果
以ASP为例
代码:
<%if Request.ServerVariables(”SERVER_NAME”)=”www.cnz88.com ” then
response.redirect “weba/index.asp”
elseif Request.ServerVariables(”SERVER_NAME”)=”bbs.cnz88.com ” then
response.redirect “webb/index.asp”
else
response.redirect “index.asp”
end if%>
这里有三个域名都绑在同一虚拟空间的IP
※ 阅读全文 »
二月 19th, 2009
主题
这篇文章主要是为想将自己的ASP水平提高的人写的! 把ASP代码变成组件,开发者不仅是加快了ASP的速度,而且也能保护自己的代码.这篇文章写出来,也是为了给想开发组件网友上一堂入门课!
下面,我们会来编写一个非常简单的组件,重点是知道怎样开发DLL组件,而不是其复杂的代码!这些都要靠你们自己以后的努力了.
服务器端组件
※ 阅读全文 »
二月 19th, 2009
<!–index.htm—————>
<!DOCTYPE HTML PUBLIC ”-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″>
</head> ※ 阅读全文 »