If the Setup binary fields as image option is turned ON, the Image control will be and enable the Force downloading option to force browser to download files. My PHP download file script makes it possible to download files without a direct link. The cache control header is used to force the download for text files and other files even if they are opened by default . PHP download files from a MySQL database . But PDF, image file, txt file will download correctly for same code. Firstly, you need to know how to insert an image into a Web page. As an aside, you can also force the image to be resized in the browser, with varying degrees. In this tutorial you will learn how to force download a file using PHP. Normally, you don't necessarily need to use any server side scripting language like PHP to download images, zip files, pdf documents, exe files, etc. You can force images or other kind of files to download. Add the modified date to the end of the image as a query. In PHP you can send a random number or the current timestamp. 3 days ago Use PHP and the content-disposition HTTP header to force files to How to Use PHP to Force a File Download John Lamb / Getty Images. Parameter, Description. filename, Required. Specifies the file to delete. context, Optional. Specifies the context of the file handle. Context is a set of options that.