Asp转为根路径格式函数
来源:互联网 发布:advan仿真软件 编辑:程序博客网 时间:2024/06/09 17:34
' 转为根路径格式
Function RelativePath2RootPath(url)
Dim sTempUrl
sTempUrl = url
If Left(sTempUrl, 1) = "/" Then
RelativePath2RootPath = sTempUrl
Exit Function
End If
Dim sWebEditorPath
sWebEditorPath = Request.ServerVariables("SCRIPT_NAME")
sWebEditorPath = Left(sWebEditorPath, InstrRev(sWebEditorPath, "/") - 1)
Do While Left(sTempUrl, 3) = "../"
sTempUrl = Mid(sTempUrl, 4)
sWebEditorPath = Left(sWebEditorPath, InstrRev(sWebEditorPath, "/") - 1)
Loop
RelativePath2RootPath = sWebEditorPath & "/" & sTempUrl
End Function
- Asp转为根路径格式函数
- Asp转为根路径格式函数
- Asp根路径转为带域名全路径格式函数
- 关于函数由绝对路径转为相对路径
- 在C#中将.bmp转为.jpg格式的函数
- asp电子邮件地址格式判断函数
- asp日期格式转换函数
- asp now() 函数格式问题
- jks转为pkcs12格式
- PHP 转为金钱格式
- 路径转为转义字符串
- 图片uri转为路径
- asp将base64的图片信息,转为图片显示,并保存到指定路径
- JSON转为字符串,字符串转为JSON格式
- 一个去掉HTML格式的ASP函数
- Asp去掉所有Html格式的函数
- ASP.NET时间函数及其格式转换
- 一个去掉HTML格式的ASP函数
- Javascript的调试利器:Firebug使用详解收藏
- 抽象类与接口的区别
- 昨天补充:
- Asp 去除Html格式,用于显示输出 函数
- Asp取实际字符长度函数
- Asp转为根路径格式函数
- WINDOWS 蓝屏错误代码说明一览表
- 搞网络都应该知道的12条基本命令
- 构建SOA组合业务服务
- 其他常用正则
- 电脑常见故障排除方法
- 45种可以拿到Webshell的程序
- bfin-xxx-gcc中multilib.h的生成
- 计算机常用端口一览表