IT Nursery
I have this code which works in a file called downloads/download.php: <?php header('Content-type: application/octet-stream'); header('Content-Disposition: attachment; filename="file.pdf"'); readfile('file.pdf'); ?> It correctly prompts to download file.pdf. I need to track...
  • May 26, 2022
  • 0 Comments
Created a class in an external script which is dependent on the WordPress environment. Since it’s a class I intend to use on various projects, I decided to dynamically...
  • May 16, 2022
  • 0 Comments