<?php
# index.php
// Directory containing .html/php/etc files to be displayed
//relative to the current directory
$HTML_DIRECTORY = "html";
switch($_REQUEST["q"]){
case 'name1':
include($HTML_DIRECTORY."/name1.html");
break;
case 'name2':
include($HTML_DIRECTORY."/name2.html");
break;
case 'name3':
include($HTML_DIRECTORY."/name3.html");
break;
default:
include($HTML_DIRECTORY."/default.html");
break;
}
?>
http://sinicco.org/hybrid8/?q=name1
http://sinicco.org/hybrid8/?q=name2
http://sinicco.org/hybrid8/?q=name3
OR
<?php
# test.php
// Directory containing .html/php/etc files to be displayed
// relative to the current directory
$HTML_DIRECTORY = "html";
include($HTML_DIRECTORY."/".$_REQUEST["q"]);
?>
http://sinicco.org/hybrid8/test.php?q=name1.html
http://sinicco.org/hybrid8/test.php?q=name2.html
http://sinicco.org/hybrid8/test.php?q=name3.html
OR
<?php
# test2.php
// Directory containing .html/php/etc files to be displayed
// relative to the current directory
$HTML_DIRECTORY = "html";
$EXT = "html";
include($HTML_DIRECTORY."/".$_REQUEST["q"].".".$EXT);
?>
http://sinicco.org/hybrid8/test2.php?q=name1
http://sinicco.org/hybrid8/test2.php?q=name2
http://sinicco.org/hybrid8/test2.php?q=name3
Of course, the files "name*.html" are in /hybrid8/html/.
How many examples do you want?