Display PDF in browser via PHP

Sometimes it is required to hide the actual PDF file name for security reason. So using a webpage you can display PDF in browser without knowing the actual URL. Example source: <?php $file = ‘path-to-pdf-file/myFile.pdf’; $filename = ‘download.pdf’; header(‘Content-type: application/pdf’); header(‘Content-Disposition: inline; filename=”‘ . $filename . ‘”‘); header(‘Content-Transfer-Encoding: binary’); header(‘Accept-Ranges: bytes’); @readfile($file); ?> Save this […]

Rounded Corners in CSS

This below content gives you an idea how to make cross-browser compatible rounded corners with CSS. Example of Rounded Corners: <!DOCTYPE html> <html> <head> <style> .roundCorner{ background: #C2C2C2; border-radius: 25px; border: 3px solid #C2C2C2; padding: 15px; width: 150px; height: 150px; } </style> </head> <body> <div class=”roundCorner”>Rounded corner div!</div> </body> </html>