I'm using WAMP for my projects, but I'm not satisfied with the original index.php. I want to display the projects folder on the WAMP index page. Here's what I've managed to think about:
<?
$sisis = file_get_contents('projektit');
echo $sisis;
?>
But this won't do anything actually. Here's the projects folder displayed in browser:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /projektit</title>
</head>
<body>
<h1>Index of /projektit</h1>
<table>
<tr>
<th>
<img src="/icons/blank.gif" alt="[ICO]">
</th>
<th>
<a href="?C=N;O=D">Name</a>
</th>
<th>
<a href="?C=M;O=A">Last modified</a>
</th>
<th>
<a href="?C=S;O=A">Size</a>
</th>
<th>
<a href="?C=D;O=A">Description</a>
</th>
</tr>
<tr>
<th colspan="5">
<hr>
</th>
</tr>
<tr>
<td valign="top">
<img src="/icons/back.gif" alt="[DIR]">
</td>
<td>
<a href="/">Parent Directory</a>
</td>
<td> </td>
<td align="right">-</td>
<td> </td>
</tr>
<tr>
<td valign="top">
<img src="/icons/folder.gif" alt="[DIR]">
</td>
<td>
<a href="CCCKauppa/">CCCKauppa/</a>
</td>
<td align="right">24-Aug-2012 22:43</td>
<td align="right">-</td>
<td> </td>
</tr>
<tr>
<th colspan="5">
<hr>
</th>
</tr>
</table>
</body>
</html>
How would I display the links only on this page?