title: Notice: Undefined offset: 1 in C:\xampp\htdocs\index.php on line 5
body: <p>Here is my php code,i searched about the solution but even after adding <code>var_dump($request);</code> i got the same Notice&lt;<code>Notice: Undefined offset: 1  in C:\xampp\htdocs\index.php on line 5</code>>.</p>
  
  <p>index.php</p>
  
  <pre><code>&lt;?php 
  $rd = dirname(__FILE__);
  $request[]='';
  var_dump($request);
  if ($request[1] == '')
    {
          $request[1] = 'header';
      include($rd.'/php_includes/'.$request[1].'.php');
    }
  
  
  if ($request[0] == '')
    {
      $request[0] = 'index';
      include($rd.'/php_includes/'.$request[0].'.php');
    }
  
  ?&gt;
  </code></pre>
  
  <p>Could you please Help me out with this?</p>