חזרתי קצת על האתר של PHP וראיתי את החלק של Readir
וחזרתי עליו קצת ותראו מה בניתי בשבילכם:
PHP קוד:
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<title>קריאת תיקייה</title>
</head>
<body>
<font face="ARIAL" size="6" color="#808080">
קריאת תיקייה
</font>
<hr>
<font color="#808080" face="ARIAL" size="2"><b>
<?php
$path = "../";
$dir_handle = @opendir($path) or die("לא יכול לפתוח את: $path");
while (false !== ($file = readdir($dir_handle))) {
echo "<li>$file</li><br>";
}
closedir($dir_handle);
?></b></font>
<hr>
<p align="center"><b>
<font face="ARIAL" size="2">
Programmed By Espire
</font>
</b>
</p>
</body>
</html>
זה קורא את התיקייה שאתם תגדירו ב:
$path
וזה במתנה לכם.
בתודה,
אביחי מנחם.