Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php set header content type html

// set header to HTML (default)
header("Content-Type: text/html");

// set header to Text
header('Content-type: text/plain');
Comment

header content type html php

header("Content-Type: text/plain");
echo "<b>hello world</b>";
// Displays in the browser: <b>hello world</b>

header("Content-Type: text/html");
echo "<b>hello world</b>";
// Displays in the browser with bold font: hello world
Comment

PREVIOUS NEXT
Code Example
Php :: php get all elements of array except last 
Php :: re migrate laravel 
Php :: laravel collection tojson 
Php :: reload page in php 
Php :: php to string 
Php :: php int min 
Php :: get template part pass variable 
Php :: redirect all request to public folder laravel htaccess 
Php :: wordpress query orderby name 
Php :: sql where count greater than 
Php :: Add Laravel .env variable to Vue component 
Php :: Check duplicate email in laravel using jQuery validation 
Php :: php grab month from date 
Php :: laravel enum migration 
Php :: wordpress display all variables 
Php :: allert in php 
Php :: php script to calculate next 50 days from current date 
Php :: laravel get latest record by date 
Php :: return json response id name from eloquent all laravel 
Php :: switch php version 
Php :: PHP auto refresh page 
Php :: laravel get parameters from request 
Php :: php shorthand if isset 
Php :: loop variable in laravel 
Php :: laravel create model with migration and resource controller 
Php :: wordpress embed shortcode in php 
Php :: checks number only in php 
Php :: wsl continuous loading 
Php :: php show error 
Php :: Call to undefined function mysql_connect() 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =