index.php文件 [英] index.php file

查看:60
本文介绍了index.php文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我是php新手。我试图为index.php文件编写一个代码,该文件只列出给定目录中的htm或html文件。我不想列出可能位于同一文件夹中的子Directorys或任何其他文件或文件夹。


任何人都可以帮助我

谢谢你

Hi,

I am new to php. I was trying to write a code for a index.php file that would only list the htm or html files in the given directory. I don''t want to to list the sub directorys or any other files or folders that might be in the same folder.

Can anyone help me please
Thank you

推荐答案

那你到底有多远?


使用[code]标签发布代码。
So how far did you get?

Post the code using [code] tags.


这是我从php.net下载的2个代码,我试图弄清楚如何将它们组合起来。


这一个:

It was 2 codes i got off php.net that I was trying to figure out how to combind them.

This one:

展开 | 选择 | Wrap | 行号


我也很新,我有你sed这一次....但没有做任何html格式输出与它。但是这些(2)的组合看起来比你要的代码少得多...... ??


[PHP]<?php
I''m fairly new also and I have used this once....but haven''t done any html formatting for output with it. But the combination of these (2) looks like a lot less code than what you going..??

[PHP]<?php


这篇关于index.php文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆