网站开发与移动开发

博客园 首页 新随笔 管理

2007年11月6日 #

摘要: <?functiongetcwdOL(){$total=$_SERVER[PHP_SELF];$file=explode("/",$total);$file=$file[sizeof($file)-1];returnsubstr($total,0,strlen($total)-strlen($file)-1);}$currenturl=getcwdOL()//取得当前目录?>例如文件所在的url为http://localhost/eng/ss/1.php输出的值为eng/ssASP中一直想得到一个这样的函数,一直搞不定,搞得每次都要手改地址如果哪位知道麻烦告诉我 阅读全文
posted @ 2007-11-06 12:09 txf2004 阅读(200) 评论(0) 推荐(0) 编辑