Jump to content


Photo

file handling


  • Please log in to reply
No replies to this topic

#1 nevx

nevx
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 21 March 2006 - 12:59 PM

I want several link on my php page
eg :
i'll have a link as follows

test C: Desktop (3 links)

now when i click on the link above
say My Documents
it opens all the files in that directory
i know the code to display the files
<?php

chdir("/wamp/www/test");
$dir=opendir(".");
while ($file=readdir($dir)) {
echo("$file<br>");
}

?>
my problems is how to get those link?maybe using <a href>
any help appreciated




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users