How can I ask the next PHP how to confirm support filetype?
According to reason that this place filetype should be color is not the same, but here do not know why the color is black, I do not know where to write the wrong, put the code
$num = 0;
$dirname = ' function ';
$dir _handle=opendir ($dirnmae);
Loop out all the files
Echo '
'; Echo '
Contents '. $dirname. ' Below
'; Echo '
'; Echo '
| filename |
file size |
file type |
modified time | '; while ($file =readdir ($dir _handle)) {$dirfile =$ DirName. ' /'. $file; $bgcolor = $num ++%2==0? ' #FFFFFF ': ' $CCCCCC '; Echo '
'; Echo '
| '. $file. ' | '; Echo '
'. FileSize ($dirfile). ' | '; Echo '
'. FileType ($dirfile). ' | '; Echo '
'. Date (' y/n/t ', FILETIME ($dirfile)). ' | '; Echo '
';} Echo '
';
Closedir ($dir _handle);
Echo ' in
'. $dirname. 'Subdirectories and files in the directory are shared
'. $num. 'A ';
Share to:
------Solution--------------------
Do not highlight how to do ~
------Solution--------------------
Problems with the IDE