header title with php when download files -


im using php stream videos site , example of video url

http://site.com/videoplayback?pkey=04132122085611&hkey=802b48a81816d7686cb1e3bbb01f4b5c&fkey=04132122085611.flv&start=0 

in way have protect , limit download speed, users ip , hiding real url path..

but when users download manager download video, title videoplayback file, here screen im mean http://i.imgur.com/nh6jlpe.png

how can send title tag ? videoplayback? videoplayback.php in file have control all...

and header have in videoplayback.php

header('pragma: public');  header("content-length: " . filesize($getfsize)); if ($k4 == '.mp4') { header('content-type: video/mp4'); } else { header('content-type: video/x-flv'); } header('connection: keep-alive'); header('proxy-connection: keep-alive'); header('accept-ranges: bytes') 

edit: example youtube, yt have stream url in same way send title download menager...

use content-disposition header set filename:

header('content-disposition: attachment; filename="' . $filename . '"'); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -