How do i remove the dots in a php directory

Rickjeh

I have a code that shows dots in the directory. I'm trying to get rid of them but google doesn't help, those dots mean back and localhost and the dots need to be removed how do i do this?

<?php
 $map = opendir('file');
 while ($bestand = readdir($map))
 {
   echo "<a href='file/$bestand'>$bestand</a><br/>"; 
 }
 closedir($map); 
?>

those dots

Daniel1147

add

if ($bestand == '.' || $bestand == '..')
    continue;

before the line contains echo

This code will skip iteration whenever $bestand is the dots.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How do I remove all files from wtihin a certain directory except for a child directory of that directory?

分類Dev

How Do I Make A Common PHP File To A Directory With .htaccess?

分類Dev

How do I add these tiny dots at the end of line plots in matplotlib?

分類Dev

How do I add these tiny dots at the end of line plots in matplotlib?

分類Dev

How do i remove quotes from url string in php

分類Dev

How do I remove a submodule?

分類Dev

How do I remove tabs?

分類Dev

How do I find the inode of any directory?

分類Dev

How do I cd to CDROM directory

分類Dev

How can I remove duplicate files across separate directory trees?

分類Dev

How do I remove typescript definition?

分類Dev

How do I remove multiple characters in a string

分類Dev

How do I remove a GitHub status check?

分類Dev

How do I remove a CAShapeLayer in progressbar circle

分類Dev

How do I remove a Folder in Powershell?

分類Dev

How do I remove a "base" portion of a path?

分類Dev

How do I remove an SSH forwarded port

分類Dev

For strings, how do I remove repeated characters?

分類Dev

How do I remove linebreaks in Notepad++?

分類Dev

How do I uninstall/remove XRCed?

分類Dev

How to remove a directory in docker?

分類Dev

How do I remove KDE from Ubuntu if I decide not to stick with it?

分類Dev

How do I set another search directory for wallpapers?

分類Dev

How do I find all of the symlinks in a directory tree?

分類Dev

How do I watch a file, not a directory for changes using Python?

分類Dev

How do I move a file to a directory and not replacing a file?

分類Dev

How do I find an image similar to the input image from a directory?

分類Dev

How do I set path to respective bin of the mingw directory

分類Dev

How do I add a directory of .wav files to the Kedro data catalogue?

Related 関連記事

  1. 1

    How do I remove all files from wtihin a certain directory except for a child directory of that directory?

  2. 2

    How Do I Make A Common PHP File To A Directory With .htaccess?

  3. 3

    How do I add these tiny dots at the end of line plots in matplotlib?

  4. 4

    How do I add these tiny dots at the end of line plots in matplotlib?

  5. 5

    How do i remove quotes from url string in php

  6. 6

    How do I remove a submodule?

  7. 7

    How do I remove tabs?

  8. 8

    How do I find the inode of any directory?

  9. 9

    How do I cd to CDROM directory

  10. 10

    How can I remove duplicate files across separate directory trees?

  11. 11

    How do I remove typescript definition?

  12. 12

    How do I remove multiple characters in a string

  13. 13

    How do I remove a GitHub status check?

  14. 14

    How do I remove a CAShapeLayer in progressbar circle

  15. 15

    How do I remove a Folder in Powershell?

  16. 16

    How do I remove a "base" portion of a path?

  17. 17

    How do I remove an SSH forwarded port

  18. 18

    For strings, how do I remove repeated characters?

  19. 19

    How do I remove linebreaks in Notepad++?

  20. 20

    How do I uninstall/remove XRCed?

  21. 21

    How to remove a directory in docker?

  22. 22

    How do I remove KDE from Ubuntu if I decide not to stick with it?

  23. 23

    How do I set another search directory for wallpapers?

  24. 24

    How do I find all of the symlinks in a directory tree?

  25. 25

    How do I watch a file, not a directory for changes using Python?

  26. 26

    How do I move a file to a directory and not replacing a file?

  27. 27

    How do I find an image similar to the input image from a directory?

  28. 28

    How do I set path to respective bin of the mingw directory

  29. 29

    How do I add a directory of .wav files to the Kedro data catalogue?

ホットタグ

アーカイブ