header php location
snippet in php

header php location

user9848

header('Location: http://www.example.com/');

header location php

user7093

<?php
// This will just redirect you to example.com
$url = "https://example.com";
header("Location: $url");  
?>

php header

user1161


<html>
<?php
/* This will give an error. Note the output
 * above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>

php header

user4296

header ( string $header [, bool $replace = TRUE [, int $http_response_code ]] ) : void