note 34882 added to control-structures.switch

From: Date: Sun, 10 Aug 2003 01:34:29 +0000
Subject: note 34882 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-53778@lists.php.net to get a copy of this message
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 :) ---- Manual Page -- http://www.php.net/manual/en/control-structures.switch.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34882 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34882&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34882&report=yes

« previous php.notes (#53778) next »