Re: [PHP] Re: files outside of documentRoot

2011-10-14 Thread Ricardo Martinez
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);

Re: [PHP] Re: files outside of documentRoot

2011-10-12 Thread Ricardo Martinez
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

Re: [PHP] Re: files outside of documentRoot

2011-10-11 Thread Ricardo Martinez
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

Re: [PHP] Re: files outside of documentRoot

2011-10-11 Thread Bastien Koert
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,

[PHP] Re: files outside of documentRoot

2011-10-09 Thread Ricardo Martinez
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

Re: [PHP] Re: files outside of documentRoot

2011-10-09 Thread Sean Greenslade
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

[PHP] Re: files outside of documentRoot

2011-10-08 Thread Jim Giner
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

[PHP] Re: files outside of documentRoot

2011-10-08 Thread Shawn McKenzie
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

[PHP] Re: files outside of the web tree

2011-04-27 Thread Shawn McKenzie
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

[PHP] Re: files outside of the web tree

2011-04-27 Thread Jim Giner
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

Re: [PHP] Re: Files redirect - using PHP and .htaccess

2009-02-17 Thread Per Jessen
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

[PHP] Re: Files redirect - using PHP and .htaccess

2009-02-16 Thread Martin Zvarík
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

[PHP] Re: Files

2005-06-28 Thread Bob Winter
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

[PHP] Re: Files question

2003-10-30 Thread Manuel Vázquez Acosta
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

[PHP] Re: Files uploads problem

2003-03-31 Thread Tim Burden
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

[PHP] Re: Files PHP in tmp ?

2003-01-27 Thread nico
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 know

[PHP] Re: Files PHP in tmp ?

2003-01-27 Thread nico
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 know the

[PHP] Re: Files PHP in tmp ?

2003-01-26 Thread Max Tappenden
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

[PHP] Re: files

2001-09-08 Thread Richard Lynch
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

[PHP] re: files

2001-05-23 Thread Jon Yaggie
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

Re: [PHP] re: files

2001-05-23 Thread Christian Reiniger
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

[PHP] RE: Files only available via HTTPS

2001-02-02 Thread Ayan R. Kayal
Add this to httpd.conf: Directory "[directory path here]" SSLRequireSSL /Directory 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