Да извежда само файловете..

Аз мисля ,че добавяш нещо допълнително в кодовете ,които ние ти даваме :idea:
 
ето целия php код, който е сега :


Код:
<? 

include "../config.php";
	

$dir = $_SERVER['DOCUMENT_ROOT']."/".$dirs."/tutorial/";
$open = opendir($dir);
while ($file = readdir($open)) {
if($file != '..' && $file !='.' && $file !='' && !is_file($file)) 
{



echo '



<table style="background: #fbfeef;" width="100%" cellpadding="0" cellspacing="2" border="0">
<tr>

					<td class="favourites" align="left">
					<img src="../_data/images/star.png" border="0" width="10" height="10"> <font color="#666666">'.$newfile[0].'</font></td>
					
					<td width="50%" class="favourites" align="center">
					<font color="#666666">'.$newfile[1].'</font></td>

                    <td width="8%" class="favourites2" align="right">
					<a href = "editfile.php?file='.$file.'"/><center><img src="../_data/images/p.png" name="del" border="0" height="16px" width="16px"></center></a><br /></td>

					
					<td width="8%" class="favourites2" align="right">
					<a href = "editfile.php?file='.$all.'"/><center><img src="../_data/images/broke.png" name="del" border="0"></center></a><br /></td>
					

				
</tr>
</table>

';

$newfile=explode(".", $file);
$dirr=strlen($newfile[1]);
if ($dirr < 1)
{
$newfile[1]="DIR";
}

}
}	
	


?>
 
А като разгледаш сорса на страницата си случайно да е недовършен ?
<?

include "../config.php";


$dir = $_SERVER['DOCUMENT_ROOT']."/".$dirs."/tutorial/";
$open = opendir($dir);
while ($file = readdir($open)) {
if($file != '..' && $file !='.' && $file !='' && !is_file($file))
{



echo '



<table style="background: #fbfeef;" width="100%" cellpadding="0" cellspacing="2" border="0">
<tr>

<td class="favourites" align="left">
<img src="../_data/images/star.png" border="0" width="10" height="10"> <font color="#666666">'.$newfile[0].'</font></td>

<td width="50%" class="favourites" align="center">
<font color="#666666">'.$newfileone.'</font></td>

<td width="8%" class="favourites2" align="right">
<a href = "editfile.php?file='.$file.'"/><center><img src="../_data/images/p.png" name="del" border="0" height="16px" width="16px"></center></a><br /></td>


<td width="8%" class="favourites2" align="right">
<a href = "editfile.php?file='.$all.'"/><center><img src="../_data/images/broke.png" name="del" border="0"></center></a><br /></td>



</tr>
</table>

';

$newfile=explode(".", $file);
$dirr=strlen($newfile[1]);
$newfileone = ($dirr < 1) ? "DIR" : "ELSE";
}
}



?>
 
И така нестава .. как така недовършен .. ако имаш предивд, че няма html тагове и такива отгоре и отдоло си инклудвам header и footer прсто несам го дал .. то това е php кода който трябва
 

Back
Горе