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
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 access files outside the DocumentRoot.
> >
> > I've been looking for info and
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, w
"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
I think I see what you mean but I guess if that's the way it's meant to be
there must not be a great risk to my uploaded files.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 04/27/2011 12:08 PM, Jim Giner wrote:
> I have managed to build include files and store them above my public folder
> and the called pages manage to find them from the public folder and properly
> include them. My problem is with the html src= attribute. I have uploaded
> photos to be incl
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
Martin Zvarík napsal(a):
Hi,
there are two choices (example):
1) file_redirect.php?src=file/root.jpg --- shows an image
2) .htaccess --- if is requested file/root.jpg than redirect to
"xyzfile/root.jpg"
In both cases I can restrict the access to some files only.
If we talk about PHP, the f
Chris,
He's my take on your problem, I have used a few different functions
but followed the same pattern as your original script. Check out
http://www.php.net/manual/en/ to get the details on the ones you don't
understand. I have not included error checking. This example works
successfully
Try file() function
"Bas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How can i read all files line by line? I am running windows. I know that
> there is then a \r\n but i don't know how to extract them... Can you help
> me?
--
PHP General Mailing List (http://www.php.net/)
To
You should tell us
1. What happens
2. What you expected to happen that didn't happen.
As Kevin points out your enctype will be wrong but if that doesn't fix it
then I'd guess at the Apache 2. But tell us what the output is anyway.
- Original Message -
From: "Adrian Greeman" <[EMAIL PROTEC
It's include files.
Ex : in index.php i call index2.php , the content of index2.php 'll be
written in /tmp
Nico
"Max Tappenden" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Are they things like
> php45a45s879a787g54a21s3a12g3a21s31a3a?
> If so, yup i kn
No , it's not sessions, it's files with php545382
and into these files , there are piece of html of my sites
Nico
"Max Tappenden" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Are they things like
> php45a45s879a787g54a21s3a12g3a21s31a3a?
> If so, yup i
Are they things like
php45a45s879a787g54a21s3a12g3a21s31a3a?
If so, yup i know the feeling
297,548,197 of them using up 128GB of storage on my HD!
Don't worry
They're just sessions
Oh and don't worry
Unless your site is a huge wooper with 500,000 - 1,000-,000 users loggin in
a day, you won't get hu
There's a Un*x utility for automagically doing this, but it leaves the new
file blank, almost for sure...
man logrotate
Can we safely assume no *other* PHP script is going to be trying to write to
this chat file while you're messing with it? If not, you really need to
move to a database solution
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
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 . ..
Jon
Add this to httpd.conf:
SSLRequireSSL
O- ~ARK
CFO, Hmedicine.com, Inc.
> -Original Message-
> From: Michael Conley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 01, 2001 7:29 PM
>
> I have several PHP files that I only want users to be able to acces
22 matches
Mail list logo