Answers for "header function php"

PHP
1

header cros orgin using php

<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
...
Posted by: Guest on August-21-2020
7

php header location

<?php
// This will just redirect you to example.com
header("Location: https://example.com");  
?>
Posted by: Guest on April-13-2020
3

php header

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

Browse Popular Code Answers by Language