错误信息提示:
错误号:12142

错误原因:

错误SQL语句:
select * from user_skin where  find_in_set('sysai.net',replace(host,'|',','))

Warning: fopen(/error/2025-06-27.txt): failed to open stream: No such file or directory in /opt/lampp/htdocs/sysai/inc/datai.php on line 247
文件 2025-06-27.txt 不可写

sysai
『 자료실 』
현재위치 : HOME > 자료실
asp获得完整访问地址的方法
글쓴이 : 매니저 작성일 : 2009-01-31

ASP获得完整访问地址的方法
暂时不知道怎么获得锚点,其他的协议、端口、参数都可以得到了。
vbscript版本
 

<%
Function getUrl()
'' @ Get full url
'' @ fisker lionkay@gmail.com
Dim protocol , serverName , serverPort , queryString , scriptName
If LCase(Request.ServerVariables("Https")) = "on" Then
protocol = "https://"
Else
protocol = "http://"
End If
serverName = Request.ServerVariables("Server_Name")
serverPort = Request.ServerVariables("Server_Port")
scriptName = Request.ServerVariables("Script_Name")
If serverPort <> "80" Then serverPort = ":"&serverPort
queryString = Request.ServerVariables("Query_String")
If queryString <> "" Then queryString = "?"&queryString
getUrl = protocol & serverName & serverPort & scriptName & queryString
End Function
%>

 

JScript版

<%@LANGUAGE="JSCRIPT"%>
<%
function getUrl()
{
// @ Get full url
// @ fisker lionkay@gmail.com
var protocol = ((String(Request.ServerVariables("Https")).toLowerCase()) == "on")?"https://":"http://" ;
var serverName = String(Request.ServerVariables("Server_Name")) ;
var serverPort = String(Request.ServerVariables("Server_Port")) ;
serverPort = (serverPort == "80")?"":":"+serverPort ;
var queryString = String(Request.ServerVariables("Query_String")) ;
queryString = (queryString == "")?"":"?"+queryString ;
var scriptName = String(Request.ServerVariables("Script_Name")) ;
return protocol + serverName + serverPort + scriptName + queryString ;
}
%>

 

域名转移的时候,我们就可以在公用的头部文件中加入下面这段示例代码

<%
dim sName
sName = Request.ServerVariables("Server_Name")
if (sName <> "www.wuyouw.com") then
dim newUrl
newUrl = replace(getUrl(),sName,"www.wuyouw.com")
Response.Redirdect(newUrl)
end If
%>

 

如果要使用301转向则需要用这段代码

<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.wuyouw.com/"
Response.End
%>
목록


홈으로 | 이용안내 | 이용약관 | 개인정보보호정책 | 제휴문의 | 질문과답변 | 자주하는 질문
Copyright © 2011 - 2014 SYSAI Work Group, All Rights Reserved 주소:길림성연길시,우편:133300 Version 3.0 Run Time 0.229s