iota
03-08-2006, 11:00 PM
Hi Php Masters,
May I know the php code that lists the files names (together with links) in the same directory ?
For example, let's say, there are five files in "mydocs" dir.
Files : doc1.doc
doc2.doc
doc3.doc
doc4.doc
doc5.doc
Location : http://localhost/mydocs/
I'd like the php code to produce the HTML output like :
<a href="doc1.doc">doc1.doc</a> <br />
<a href="doc2.doc">doc2.doc</a> <br />
<a href="doc3.doc">doc3.doc</a> <br />
<a href="doc4.doc">doc4.doc</a> <br />
<a href="doc5.doc">doc5.doc</a>
Is it possible to implement in PHP ?
Thank you extremely much for your masterpiece.
May I know the php code that lists the files names (together with links) in the same directory ?
For example, let's say, there are five files in "mydocs" dir.
Files : doc1.doc
doc2.doc
doc3.doc
doc4.doc
doc5.doc
Location : http://localhost/mydocs/
I'd like the php code to produce the HTML output like :
<a href="doc1.doc">doc1.doc</a> <br />
<a href="doc2.doc">doc2.doc</a> <br />
<a href="doc3.doc">doc3.doc</a> <br />
<a href="doc4.doc">doc4.doc</a> <br />
<a href="doc5.doc">doc5.doc</a>
Is it possible to implement in PHP ?
Thank you extremely much for your masterpiece.