找回密码
 注册账户
查看: 1679|回复: 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, 2026-6-4 14:37 , Processed in 0.018051 second(s), 8 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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