Mmm i'm trying to show a .flv but i dont know if i'm using the correct
headers and method.
$name = $file;
$fp = fopen($name, 'rb');
// send the right headers
header("Content-Type: video/x-flv");
header("Content-Length: " . filesize($name));
// dump the picture and stop the script
fpassthru($fp);
It works thx a lot =)
On Tue, Oct 11, 2011 at 5:26 PM, Bastien Koert wrote:
> On Tue, Oct 11, 2011 at 11:00 AM, Ricardo Martinez
> wrote:
> > Hi!
> >
> > i'm was checking, readfile(); and fpassthru();
> >
> > With easy examples, i can use it for show a pic in the screen and
> download a
> > f
On Tue, Oct 11, 2011 at 11:00 AM, Ricardo Martinez wrote:
> Hi!
>
> i'm was checking, readfile(); and fpassthru();
>
> With easy examples, i can use it for show a pic in the screen and download a
> file, from outside of documentRoot. It works fine.
>
> The problem that i have now, is, i need can w
Hi!
i'm was checking, readfile(); and fpassthru();
With easy examples, i can use it for show a pic in the screen and download a
file, from outside of documentRoot. It works fine.
The problem that i have now, is, i need can work with it, inside of other
documents, but i'm getting all time error b
On Sun, Oct 9, 2011 at 9:52 AM, Ricardo Martinez wrote:
> The files are, png, pdf and flv.
>
> Only users login can see or download it.
>
> thx ;>
>
> On Sat, Oct 8, 2011 at 11:16 PM, Shawn McKenzie >wrote:
>
> > On 10/08/2011 03:40 PM, Ricardo Martinez wrote:
> > > Hi List!
> > >
> > > I need to
Martin Zvarík wrote:
> AHA, from what I've just read, the .htaccess is server-side, so the
> client won't know the real directory.
>
> Can somebody confirm?
Unless you do an external redirect, confirmed.
/Per
--
Per Jessen, Zürich (0.6°C)
--
PHP General Mailing List (http://www.php.net/)
To
On Wednesday 23 May 2001 17:03, Jon Yaggie wrote:
> Okay thanks perhaps i am using an old manual. I think i downloaded it
> about three months ago but this function is not present there . ..
Bad excuse. That function has been in there since at least the early PHP3
versions.
--
Christian Reini
7 matches
Mail list logo