Tag: pdf

No Cache for Apache

Navigate to your httpd.conf file (xamppapacheconf) and open it using your favourite text editor. If you do not have access to this folder/file, open your .htaccess file instead. Underneath the "#LoadModule" lines, add the following: # Instruct the browser to always check for the latest version of your files using Apache directives <IfModule mod_headers.c> <FilesMatch

Load PDF into PHP File

This code shows using a database but can easily be adopted for direct use. // Database Connection $conn = new mysqli('hostname', 'username', 'password', 'database'); //Check for connection error $select = "SELECT * FROM `infopdf`"; $result = $conn->query($select); while($row = $result->fetch_object()){ $pdf = $row->filename; $path = $row->directory; $date = $row->created_date;