Search
 
SCRIPT & CODE EXAMPLE
 

PHP

view a pdf file in the browser using the php header function

$file = 'headerPdfFile.pdf';

$filename = 'IamPdfFile.pdf';
  
// Header content type
header('Content-type: application/pdf');
  
header('Content-Disposition: inline; filename="' . $filename . '"');  
  
// Read the file
@readfile($file);
Comment

PREVIOUS NEXT
Code Example
Php :: write if and else in one line laravel 
Php :: enablequerylog laravel 
Php :: laravel carbon time format AM PM 
Php :: php get youtube code from url 
Php :: php artisan db:seed Call to undefined method AppModelsProduct::factory() 
Php :: laravel run seed 
Php :: how to get category from post id 
Php :: laravel blade for loop 
Php :: php memory_limit unlimited 
Php :: wordpress Access-Control-Allow-Origin 
Php :: close mysql connection in php 
Php :: php stdclass to array 
Php :: php curl post application/x-www-form-urlencoded 
Php :: php cut off first x characters 
Php :: php curl post json 
Php :: category name wp query 
Php :: install php 7.4 on ubuntu 20.04 
Php :: php sec into date time 
Php :: laravel old request hmtl select 
Php :: How to display the fps in pygame 
Php :: remove duplicate values in array php 
Php :: php display all rows in mysql table 
Php :: php get current year 
Php :: Install ext-dom php 7.2 
Php :: wordpress get username 
Php :: composer create project laravel 7 
Php :: how to remove token while logout using laravel 8 
Php :: array push object php 
Php :: get price woocommerce product 
Php :: php get location from ip address 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =