title: A PHP command to open a php page inside an index.php file
body: <p>I have an index.php file. Inside the index.php file I am using the following php code to open a "home.php" page from a "pages" folder:</p>
  
  <pre><code>&lt;?
  switch (isset($do)) {
      case $do=='home':
          include("pages/home.php");
          break;
  }?&gt;
  </code></pre>
  
  <p>It works fine. My problem is that I want to open a "about.php" page inside the index.php as well. The "about.php" page is not inside the "pages" folder but rather in a different folder called "about". I am using this php code but it is not working:</p>
  
  <pre><code>&lt;?
  switch (isset($show)) {
  case $show=='about':
      include("about/about.php");
      break;
  }?&gt;
  </code></pre>
  
  <p>Can someone please point where I am wrong?
  I appreciate your help.</p>