All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.Net,2.0,发送邮件的代码_.net资料_编程技术
初学:学习PHP相关安全问题的入门知识_php资料_编程技术
ASP.NET2.0的multiview和wizard控件_.net资料_编程技术
web.config中加密连接字符串_[Asp.Net教程]
ASP.net(c#)字符串替换简单例子_[Asp.Net教程]
PHP技巧:详解phplib模板使用过程及运行原理_php资料_编程技术
Windows环境PHP的session不能正常使用解决办法_[PHP教程]
了解PHP处理复杂数学问题的10个PEAR类_php资料_编程技术
PHP日期时间函数的高级应用技巧_php资料_编程技术
安装并使用phpMyAdmin管理MySQL数据库_php资料_编程技术
Reading number is top 10 pictures
NeedWallpaper1
玩手机对身体不好
Absolutely shocked. National geographic 50 animal photographys3
9.3阅兵全景图2-英雄连队梯队和外国方阵梯队
中国处女图鉴1
A resort photographed beautiful young woman change clothes process vomiting blood1
Fan bingbing black wings for platform and DanLuoWang believes beauty2
遇到插队的怎么办?
Absolutely shocked. National geographic 50 animal photographys4
Plump breasts1
Download software ranking
致我们终将逝去的青春
Tram sex maniac 2 (H) rar bag19
Popkart Cracked versions Mobile phone games
Sora aoi, the nurse, uniform ,nursing assistant
dreamweaver8中文版
Unix video tutorial7
Tram sex maniac 2 (H) rar bag7
jdk1.5
Unix video tutorial17
Professional killers2 for Android
归海一刀 published in(发表于) 2014/2/17 7:38:52 Edit(编辑)
PHP程序指定目录里的指定后缀名文件为超连接_[PHP教程]

PHP程序指定目录里的指定后缀名文件为超连接_[PHP教程]

PHP程序指定目录里的指定后缀名文件为超连接_[PHP教程]

用PHP实现的一个非常不错的目录导航文件的一个函数。


这个代码虽然短小,但很实用,它可以轻松建立你指定的目录里的指定后缀名文件的超连接,而且可以设定,不会将指定的目录首页导航。



function navbar()
{
files = dir("."); //指定目录
pipe = " | "; //管道符
//通过以下的循环搜索目录中所有文件
while (current = files->read())
{
//ignor all files not of htm type.
if (strpos(current, "php\")!= FALSE) //设定后缀为PHP的文件将被导航
//忽略自己(如 index.html)
{


if (strpos(current, "ndex") == FALSE)
{
print "";
print current;
print "
";
print pipe;
};
};
};
};
navbar() //调用函数
?>







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.