You are here: Clickable File Link in PHP « PHP Programming Language « IT news, forums, messages
Clickable File Link in PHP

Posted by Jeff Gaines on 10/09/07 16:38

I have spent the day learning how to use Zend Development Environment. I
can now produce a list of files in a directory, filtered by extension, and
apparently clickable. Unfortunately clicking on them in a browser doesn't
take me to the file link.

I have found examples for clickable URL's, FTP links and mailto addresses
but not files. I am managing to produce output like this:

<a href="file:///E:/wwwroot/Test/NewListing.php">NewListing.php</a>
<br>
<a href="file:///E:/wwwroot/Test/Public DNS.htm">Public DNS.htm</a>
<br>
<a href="file:///E:/wwwroot/Test/TestList.php">TestList.php</a>
<br>
<a href="file:///E:/wwwroot/Test/Usenet.htm">Usenet.htm</a>

They look fine in a browser (running on Localhost) but I get nowhere
clicking them. If I copy the output from Zend and paste it into an editor
then save it as an html file the links all work fine so the output seems
to be in the correct format.

The examples I found all work so I am coming to the conclusion that either
clickable file links are not possible or I am missing something obvious.

Can anybody give me a steer on this? I want clickable file links rather
than just navigating to a folder so I can control what files are shown
(i.e. just file.html not file.html and the file files directory).

Many thanks.

--
Jeff Gaines Damerham Hampshire UK
There is no reason anyone would want a computer in their home.
(Ken Olson, president Digital Equipment, 1977)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация