网络实验室

 找回密码
 注册账户
查看: 1613|回复: 0

PHP简单分类列表

[复制链接]
无心的棋子 发表于 2007-7-16 01:40:03 | 显示全部楼层 |阅读模式
  1. <?

  2. //specify the directory path
  3. $path = "../";

  4. //open the directory
  5. $dir = @opendir($path) or die("cannot open $path");

  6. //read and show the result
  7. while (false !== ($files = readdir($dir))) {
  8. echo "$files<br>";
  9. }

  10. //close the directory
  11. closedir($dir);

  12. ?>
复制代码
您需要登录后才可以回帖 登录 | 注册账户

本版积分规则

黑屋|存档|手机|网络实验室 本站服务器由美国合租以及IDCLayer国际数据提供!!!

GMT+8, 2024-4-29 14:26 , Processed in 0.086836 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表