***************************************************************
* PHP目录树 *
***************************************************************
文件列表:
- index.html
- about.html
- demo.php3 演示目录树
- demomenu.txt 目录结构
- treemenu.inc 主目录节点
- tree_*.gif 七个目录树图片
- readme.txt 介绍文件
要求:
- 配有php的WEB服务器.
演示:
- 将文件拷贝到WEB服务器目录下
- 在浏览器中打开index.html
概述:
目录结构文件
-----------------------
我们首先需要产生一个目录树结构文件,这是一个常见的TEXT文本文件(见demomenu.txt),
第一行是一个单结点(根目录),紧其后是该结点的名称,.The following lines contain the menu items. Each line starts with
two or more dots to indicate the level in the tree. A level can't
be more than one level deeper than the previous one. Following the
dots come the item name, link and link target, seperated by a '|'.
If an item doesn't need to link to somewhere then the link and
target can be omitted. Item names can contain HTML code,
for example you can put <b> tags around a name to make it bold or
you could even use images instead of text, there are all kinds of
possibilities.
An example menu will probably clarify a lot so here it is:
目录是例::
.top
..category 1
...item 1.1|item11.html|main
...item 1.2|item12.html|main
..category 2
...sub category 2.1
....item 2.1.1|item211.html|main
....item 2.2.2
引用文件:
---------------
当建立一个新的目录结构文件后,我就可以向下面这样简单的引用。:
<html>
<body>
<?php
$treefile = "mymenu.txt";
require "menutree.inc";
?>
</body>
</html>
变量$treefile 来指定目录结构的文件名,如果路径步特别说明,它将默认跟php文件在同一目录下。
ok!
-----------
现在保存所有的文件在WEB服务器的同一目录下,所后在浏览器上看看!
没有合适的资源?快使用搜索试试~ 我知道了~
PHP编程一百例
共275个文件
php:91个
bmp:83个
gif:79个
需积分: 0 5 下载量 56 浏览量
2008-01-12
14:24:31
上传
评论
收藏 1002KB RAR 举报
温馨提示
PHP编程一百例,可以学习
资源详情
资源评论
资源推荐
收起资源包目录
PHP编程一百例 (275个子文件)
gorilla.php3.bak 3KB
34.BMP 1.32MB
65.BMP 1.32MB
88-2.BMP 1.32MB
88-1.BMP 1.32MB
48.BMP 1.32MB
96.BMP 1.32MB
40.BMP 1.32MB
83.BMP 1.32MB
89-1.BMP 1.32MB
89-2.BMP 1.32MB
85.BMP 1.32MB
97.BMP 1.32MB
50.BMP 1.32MB
89-3.BMP 1.32MB
45.BMP 1.32MB
81.BMP 1.32MB
71.BMP 1.32MB
37.BMP 1.32MB
90.BMP 1.32MB
76.BMP 1.32MB
100.BMP 1.31MB
93.BMP 1.1MB
72.BMP 972KB
98.BMP 755KB
62.BMP 750KB
95.BMP 726KB
82-1.BMP 724KB
86.BMP 660KB
58.BMP 658KB
92.BMP 571KB
55.BMP 551KB
49.BMP 551KB
54.BMP 551KB
36.bmp 533KB
87-1.BMP 504KB
74.BMP 483KB
67.BMP 483KB
27.BMP 483KB
29.BMP 483KB
30.BMP 483KB
28.BMP 483KB
26.BMP 483KB
59.BMP 447KB
99.BMP 417KB
94-2.BMP 408KB
84.BMP 395KB
60.BMP 381KB
61.BMP 381KB
75.BMP 378KB
53.bmp 360KB
41.bmp 360KB
64.bmp 360KB
44.BMP 345KB
43.BMP 345KB
38.BMP 345KB
47.BMP 332KB
91.BMP 322KB
56.BMP 311KB
79.BMP 308KB
77.BMP 308KB
80.BMP 308KB
87-2.BMP 287KB
39.BMP 275KB
78.BMP 266KB
25.BMP 264KB
46.BMP 251KB
82-2.BMP 247KB
69.BMP 233KB
24.BMP 227KB
68.BMP 201KB
42.BMP 201KB
57.BMP 200KB
94-1.BMP 194KB
52.BMP 183KB
31.BMP 177KB
32.BMP 177KB
51.BMP 176KB
66.BMP 168KB
63.BMP 167KB
70.BMP 165KB
73.BMP 162KB
35.BMP 152KB
33.BMP 152KB
CSS.CSS 694B
counternumber.dat 2B
doodle_title.GIF 4KB
001.GIF 2KB
013.GIF 2KB
003.GIF 2KB
004.GIF 2KB
005.GIF 2KB
108.GIF 2KB
114.GIF 2KB
111.GIF 2KB
010.GIF 2KB
016.GIF 2KB
002.GIF 2KB
113.GIF 2KB
109.GIF 2KB
共 275 条
- 1
- 2
- 3
snlixing
- 粉丝: 68
- 资源: 35
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0