Search
 
SCRIPT & CODE EXAMPLE
 

PHP

file viewer codeigniter

function view_file() {
        $id = $this->uri->segment(3);
        $file = realpath('./uploads/'.$id);
        header("Content-disposition: inline;filename=".$id);
        header('Content-Type: application/pdf');
        @readfile($file);
    }
Comment

PREVIOUS NEXT
Code Example
Php :: JsonResource withoutWrapping 
Php :: 12 months service expiary in php 
Php :: time debug php 
Php :: cf7 first_as_label 
Php :: wp wc trim zero 
Php :: laravel route namespace and prefix 
Php :: laravel livewire refresh computed property 
Php :: get base class name laravel 
Php :: return user details from controller to view 
Php :: WordPress oEmbed Funktion abschalten 
Php :: php questions in tasks 
Php :: assertequals vs assertsame 
Php :: Dynamic modal name appending in laravel 
Php :: PHP DocBlocker current date 
Php :: when WYSIWYG fields remove paragraph tag 
Php :: PHP nl2br — Inserts HTML line breaks before all newlines in a string 
Php :: how to remove public from url in laravel 9 
Php :: laravel retain old value 
Php :: not have permision elgg settings.php 
Php :: dd function not laravel 
Php :: searching for new lines 
Php :: executer page php via boutton 
Php :: php count word arabic 
Php :: PHPMailer/SMTP.php line 467 
Php :: ultimo numeto php 
Php :: download php 7.4 
Php :: create custom rule in laravel 
Php :: file_get_contents with url 
Php :: how to grab shortcode from custom post type 
Php :: carbon check sunday 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =