ThemeShaper Forums » Thematic

[closed]

Forced download of .jpg via PHP as function?

(1 post)
  • Started 9 years ago by Manuel
  • This topic is not a support question
  1. Could this code (which forces e.g. a .jpg to get downloaded instead of parsed by the browser and opened) made into a function somehow, so that you can assign it to a specific .jpg?

    header("Content-Disposition: attachment; filename=".basename($outputFile).";"

    I have no idea if this would even make sense to put it in the functions.php.

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.