this does not want to show all my html files. I dont know what is wrong but as far as i know.. when i refresh the and it goes to the main dir it shows all files.. but.. when i go to a dirrent dir.. it does not want to show all my files in that dir.. on top of that i get errors on files that are not on the curront dir..
can anyone please help.. here is the code that shows it al
while( $R = readdir( $D )){
if(( is_dir( $R )) && $R != "." && $R != ".." ){
$dir .= "<td align=\"left\" valign=\"top\" bgcolor=\"#87CEEB\">
Directory
</td><td align=\"left\" valign=\"top\" colspan=5 bgcolor=\"#87CEEB\">
<img src=\"images/board.gif\" border=0>
<a href=\"$PHP_SELF?ddir=".getcwd()."/$R/\">$R</a></td></tr>";
}elseif( is_file( $R ) != strstr( $R, '.php' ) && $R != strstr( $R, '_' )){
$file .= "<tr align=\"left\"><td align=\"left\" valign=\"top\" bgcolor=\"#87CEEB\">
<input type=\"checkbox\" name=\"checkdir\" value=\"$R\"> ";
if(( is_file( $R )) == strstr( $R, '.html' )){
$file .= "<a href=\"panel.php?edit=" . $R . "\">
<img src=\"images/ed.gif\" border=0 alt=\"Click to Edit html\"></a>
</td><td align=\"left\" valign=\"top\" bgcolor=\"#87CEEB\">
<img src=\"images/xx.gif\" border=0>
<a href=\"$R\" target=\"_view\">$R</a></td>
<td align=\"left\" valign=\"bottom\" bgcolor=\"#87CEEB\">"
. round ( filesize( $R )) . "bytes
<br></td><td align=\"left\" valign=\"bottom\" bgcolor=\"#87CEEB\">" .
date ( "F d Y h:i:a.", filemtime( $R )) ."</td>";
}else{
blah blah
}
and here is the url so you know what i mean
View in action with errors once you get there. click on projects dir. and you will see what i mean =(