I’m reading a directory and am listing it’s content’s. I want each file or folder to link to eachother. As of now it does this but it go to the directory browsing.
You can see here .
I want to make a details page that gives some other information. So basically I want to send a query to the details page which will then read that file?
Here’s what i got thus far
<?
$current_dir = "/home/digitalo/public_html/exp/";
$dir = opendir($current_dir);
echo "Current directory you are browsing is $current_dir<br>";
echo "Directory Listing:<br><hr><br>";
while ($file = readdir($dir)){
echo "<a href='$file'>$file</a><br>";
}
echo "<hr><br>";
closedir($dir);
?>