note 34882 deleted from control-structures.switch by didou
| From: | didou@php.net | Date: | Sun, 10 Aug 2003 01:36:47 +0000 |
| Subject: | note 34882 deleted from control-structures.switch by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53779@lists.php.net to get a copy of this message | ||
Note Submitter: larmeh@tycon.ath.cx
----
a nice, slow and much more difficult way to navigate your site without using include(), switch() and
so on:
if (!$page) {
$page = start;
}
function showpg () {
if (func_get_arg(0) == start) {
$file = "/usr/local/www/data/" . @func_get_arg(0) . ".php";
$read_file = @fopen($file,"r");
while (!feof($read_file)) {
$code=fgets($read_file);
echo $code;
}
exit();
}
i wrote this in my early days of php coding, so dont blame me :)