Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are using this :</p> <pre><code>header('Location', 'index.html'); </code></pre> <p>It is not the way <a href="http://php.net/manual/en/function.header.php" rel="noreferrer"><code>header</code></a> must be used : the second parameter should be a boolean.</p> <p>ANd the first one should be the header name + value.</p> <p>So, in your case, something like this :</p> <pre><code>header('Location: index.html'); </code></pre> <p>Only one parameter ; and name + ':' + value <strong>:-)</strong></p> <p>There is an example in the documentation :</p> <blockquote> <p>The second special case is the "Location:" header. Not only does it send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless some 3xx status code has already been set.</p> </blockquote> <pre><code>&lt;?php header("Location: http://www.example.com/"); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?&gt; </code></pre> <p><br> As a sidenote, if I remember correctly, you should use a FULL absolute URL when using the <code>Location</code> header ; I know using relative URL works in (almost ?) all browsers, but it is not valid, when reading the HTTP RFC, if I recall correctly.</p> <hr> <p>As a second sidenote <em>(yes, the answer has already been accepted, but maybe it'll be useful anyway, for next time :-) )</em> : that "INternal Server Error" might indicate your PHP script encountered some kind of error.</p> <p>In that case, you should check the <code>error_log</code>'s file... <br>...Or activate <a href="http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting" rel="noreferrer"><code>error_reporting</code></a> and <a href="http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting" rel="noreferrer"><code>display_errors</code></a> to facilitate things -- at least on your development machine.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload