hi im trying to get this script to work,
Im not to new to php guys but i just cant get my head around this one ??
PHP:
<?php
$view = ($_GET['view']);
$path = "html/";
$dir_handle = @opendir($path) or die ("ERROR");
switch($view){
//whileloop
while ($file = readdir($dir_handle))
{
case:$file;
include($file);
break;
}
default:
include("home.html");
break;
}
?>
Im not to new to php guys but i just cant get my head around this one ??
Last edited: