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 phps...@gmail.com wrote:
On Tue, Oct 11, 2011 at 11:00 AM, Ricardo Martinez harisel...@gmail.com
wrote:
Hi!
i'm was checking, readfile(); and fpassthru();
With easy examples, i can use it for show a pic in the
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
On Tue, Oct 11, 2011 at 11:00 AM, Ricardo Martinez harisel...@gmail.com 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,
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 nos...@mckenzies.netwrote:
On 10/08/2011 03:40 PM, Ricardo Martinez wrote:
Hi List!
I need to access files outside the DocumentRoot.
I've been looking for
On Sun, Oct 9, 2011 at 9:52 AM, Ricardo Martinez harisel...@gmail.comwrote:
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 nos...@mckenzies.net
wrote:
On 10/08/2011 03:40 PM, Ricardo Martinez wrote:
Hi
Access files for use in the running script? Or access files meaning
executing a script?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 10/08/2011 03:40 PM, Ricardo Martinez wrote:
Hi List!
I need to access files outside the DocumentRoot.
I've been looking for info and documentation, and I've read that it can be
done using symbolic links and another way is by using headers.
I want to know, what do you think, what is
8 matches
Mail list logo