title: The best way for loads of IF - ELSE - INCLUDE?
body: <pre><code>&lt;?php
      if ($page == null || $page == "home")
          require_once ("home.php");
      else if ($page == "bill")
          require_once ("bill.php");
      else if ($page == "product")
          require_once ("product.php");
      else if ($page == "addproduct")
          require_once ("addproduct.php");
      else if ($page == "editpd")
          require_once ("editpd.php");
  
      /** ... MANY LINES ... **/
  
      else if ($page == "permission")
          require_once ("permission.php");
      else if ($page == "options")
          require_once ("option.php");
      else // NOT FOUND, REDIRECT HOME
          echo "SOMETHING WENT WRONG";
  ?&gt;
  </code></pre>
  
  <p>The above code is loads of <code>IF ELSE and REQUIRE_ONCE</code>.</p>
  
  <p>I have started worrying about the execution time when the system is developed, it means that i have to write <code>IF ELSE and REQUIRE_ONCE</code> more and more.</p>
  
  <p>So i really want to know, </p>
  
  <p>What is a solution or the better way for this in case not use any framework?</p>