Gert-Jan
02-01-2005, 02:11 PM
I'm searching a script to rate a file,i made this script, to show the files in a folder, but now, i want (also in the table, on the right) that every file, has a function so you can rate it.
Here is the code
<?php
if ($handle = opendir('/home/wiz/public_html/gert-jan/torrent/')) {
echo "<table border=1>\n";
while (false !== ($file = readdir($handle))) {
if($file!="." && $file != ".."){echo "<tr><td>".$file."</td></tr>\n";}
}
closedir($handle);
}
echo "</table>"
?>
Here is the code
<?php
if ($handle = opendir('/home/wiz/public_html/gert-jan/torrent/')) {
echo "<table border=1>\n";
while (false !== ($file = readdir($handle))) {
if($file!="." && $file != ".."){echo "<tr><td>".$file."</td></tr>\n";}
}
closedir($handle);
}
echo "</table>"
?>