DSGN53871
WEB DESIGN 1

Header

header() is used to send raw HTTP headers.

header is used most often to redirect the browser to another file location.

As a precaution, exit is used to stop anyother part of the function to execute.

<?php
header("Location: http://www.example.com/"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?> 


<< Back


Interactive Multimedia ~ School of Applied Engineering and Computing Sciences ~ Sheridan