Jump to content

ted_chou12

Members
  • Posts

    1,488
  • Joined

  • Last visited

Everything posted by ted_chou12

  1. okay, actually, i just want to know how to hide and show files for listing the directory, however, there were folders included in the directory i wanted to list so i asked. ps. you got the point? :)
  2. where do i add it to? (into the script): if (filetype($file) == "file" || filetype($file) == "dir") thanks for helping :)
  3. what about if i want to show directories, is there a way to do that? thanks again :)
  4. is there a way to show/hide specific files and general files? eg. say i want to hide "secrete.txt" and I only want to show "dir" extension files. THanks
  5. I wish to know how to rename the files with some i++ functions, like when writing to a text file, i want to name the text files in sequence eg. the first file "file 1",second "file 2"...etc and so on, does anyone know how to do that? :D
  6. yeah, this sounds like a cool idea to me, i also have a site with user logins, suggestions from anyone? :-\
  7. opps ??? can you teach me: how do i insert the code into the list directory script please
  8. thanks :D! i will request for help if i dont understand.
  9. Please see the code below: sorry for taking up so much of your time, but i have one more question to ask: <?php $dir = "."; $file = readdir($dh); $time = filecdate($file,"Y-m-d"); if($dh = opendir($dir)) { while (($file = readdir($dh)) !== false){ echo "<table border=0><td><font size=5 face=\"arial\"><b>Username:</b> <a href=\"$file\">$file</a><br></font></td><td>$time</td>"."\n";} closedir($dh);} ?></table> This is a list directory php script, i want to know if it is possible to both show and hide files. ps. can you teach me to show and hide both specific files (ie. with specific filename), and general types,(eg. types of files with same file extension). THANKS, to anyone who attempts to help me out :D
  10. See the code below: <?php $dir = "."; $file = readdir($dh); if($dh = opendir($dir)) { while (($file = readdir($dh)) !== false){ echo "<table border=0><td><font size=5 face=\"arial\"><b>Username:</b> <a href=\"$file\">$file</a><br></font></td>"."\n";} closedir($dh);} ?></table> This is a list directory php script, i want to know if it is possible to both show and hide files. ps. please teach me how to show and hide both specific files (ie. with specific filename), and general types,(eg. types of files with same file extension). THANKS, to anyone who replies with a solution. :D
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.