Ok, so far i've got this to display the files:
PHP Code:
<?php
$path = "mypath/web/guestbook2/messages/";
$dir_handle = @opendir($path) or die("Unable to open $path");
while ($file = readdir($dir_handle)) {
if($file == "." || $file == ".." || $file == "index.php" )
continue;
continue;
echo "<a href=\"messages/$file/\">$file</a> <div> <a href="../index.php"> delete </a> </div><br>";
}
// Close
closedir($dir_handle);
?>
but how can i get it display the content instead of displaying the name of the file?
Bookmarks