Downloading in PHP

User puts URL … A file is downloaded to the server(i have done this) … Now i want to show a popup to user for downloading the same file. How is that possible … Any piece of code?

Does it really need to be a pop-up? Don’t a lot of people run pop-up blockers now, so they won’t see it. Otherwise, did the code someone posted in your other thread not help?

1 Like

use echo :slight_smile:

There’s a CSS trick to make it look like a pop-up and avoids the pop-up blockers. :stuck_out_tongue_winking_eye:

Here’s a quick and dirty way of what I mean

Okay Without a pop up … How to start the download in the user’s browser.

please elaborate the solution.

just use readfile() on the path.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.