Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Local File Listing

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Joined
Nov 23, 2003
Messages
249
Location
US
I am writing an upload script for my site. I am displaying remote files in a list box and wish to do the same to get the local files. how do I got about doing this to display the local computer files?

I am using
<?php $special_dir=opendir(&quot;../../bleh&quot;); while (false != ($file = readdir($special_dir))) {
echo &quot;<option value=\&quot;$file\&quot;>$file</option>&quot;;
}
?>

to get the remote files, how do I get the local files
 
If you mean the local files on the computer accessing the web page then you'd have to use client side programming (eg javascript).
 
I just found this thread in the javascript forum about it: thread216-374747
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top