content type 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;
?>
header ( string $header [, bool $replace = TRUE [, int $http_response_code ]] ) : void<?php
// This will redirect to google.com
$url = "https://google.com";
header("Location: $url");
?>
Also in PHP:
- composer require laravel/ui not working laravel 7
- exceptionhandling php
- codeignitor get insert id
- can i refresh page in php
- dsiplay datetime without T php
- check version composer
- filter elementor
- check if char exists in string php
- artisan clear template cache
- Str::split laravel
- check if string contains substring php 8
- check multiple permission laravel spatie
- consol log php variables
- Call to undefined method Illuminate\Session\Store::set()
- add() in php
- console/log php
- cristal clear
- file list php page
- composer require laravel
- array unique php index not getting organised
- error reporting php all
- ajax php show random questions
- display error php
- error message in php