Jump to content

demonicoder

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

demonicoder's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ι have been trying to find exactly the same. Is their some other thread which contains updated information?
  2. I'm writing because I see that this thread, even though old, it still is pretty up-to-date with the situation. The readfile method works perfectly, however, I need a way to force the download on the user and make them download the file straight from the external server.  Whenever I am trying to use: header('Content-Disposition:attachment;bla bla bla without readfile I download the file, however it is 0 bytes. I then thought that maybe the browser did not understand how many bytes to download, so I calculated the file size of the remote file and sent another header along the way like: header("Content-length: $video_size"); Has anyone managed to successfully got this to work without the use of readfile and not get an empty zero file?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.