Re: [PHP] restricting files

2002-06-09 Thread Justin French

Have you got a link for somewhere to look for a base set of functions for me
to build on?

Thx,
Justin


on 08/06/02 5:39 PM, Miguel Cruz ([EMAIL PROTECTED]) wrote:

 On Sat, 8 Jun 2002, Justin French wrote:
 When you say serve the files through a script, I assume you mean
 download.php force-feeds an MP3 (or whatever) to the browser.
 
 Is this correct?
 
 I read people have lots of problems with this...
 
 Only until they get it working (I should hope). We use it for many, many
 sites and I can't think of any problems it's caused.
 
 miguel
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] restricting files

2002-06-09 Thread Jason Wong

On Sunday 09 June 2002 23:08, Justin French wrote:
 Have you got a link for somewhere to look for a base set of functions for
 me to build on?

Search the archives, I'm sure I've posted some download code on the list 
before, as have others. 

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
The vast majority of successful major crimes against property are
perpetrated by individuals abusing positions of trust.
-- Lawrence Dalzell
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] restricting files

2002-06-08 Thread Justin French

When you say serve the files through a script, I assume you mean
download.php force-feeds an MP3 (or whatever) to the browser.

Is this correct?

I read people have lots of problems with this...


Justin



on 08/06/02 4:08 PM, Jason Wong ([EMAIL PROTECTED]) wrote:

 On Saturday 08 June 2002 13:46, Justin French wrote:
 MP3 and quick time -- otherwise the solution would be easy :)
 
 Thanks,
 
 Justin
 
 on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
 On Saturday 08 June 2002 09:19, Justin French wrote:
 Hi,
 
 I wish to restrict access to a dir of files, depending on if the user is
 a logged in and validated member.
 
 What kind of files are they? html? php? or others?
 
 The quick answer is, store the files outside of the website's DOCUMENTROOT,
 then serve the files through a script (which naturally checks whether the
 user is logged in).


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] restricting files

2002-06-08 Thread Miguel Cruz

On Sat, 8 Jun 2002, Justin French wrote:
 When you say serve the files through a script, I assume you mean
 download.php force-feeds an MP3 (or whatever) to the browser.
 
 Is this correct?
 
 I read people have lots of problems with this...

Only until they get it working (I should hope). We use it for many, many 
sites and I can't think of any problems it's caused.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] restricting files

2002-06-07 Thread Justin French

Hi,

I wish to restrict access to a dir of files, depending on if the user is a
logged in and validated member.

My first guess was to restrict access to the files with .htaccess, only
allowing access if the referring (linking) script was something like
members.php, so they'd only get the link if they were logged in, and only be
able to access the file via the members page, which required login... but I
can't find any documentation for this (perhaps it's not possible), so I need
to look at other options.

I know I can hide the LINK from non-members, but what's to stop them telling
their friends what the URL is?

Any suggestions welcome :)


Justin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] restricting files

2002-06-07 Thread Jason Wong

On Saturday 08 June 2002 09:19, Justin French wrote:
 Hi,

 I wish to restrict access to a dir of files, depending on if the user is a
 logged in and validated member.

What kind of files are they? html? php? or others?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
If it wasn't so warm out today, it would be cooler.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] restricting files

2002-06-07 Thread Justin French

MP3 and quick time -- otherwise the solution would be easy :)

Thanks,

Justin


on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote:

 On Saturday 08 June 2002 09:19, Justin French wrote:
 Hi,
 
 I wish to restrict access to a dir of files, depending on if the user is a
 logged in and validated member.
 
 What kind of files are they? html? php? or others?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] restricting files

2002-06-07 Thread Jason Wong

On Saturday 08 June 2002 13:46, Justin French wrote:
 MP3 and quick time -- otherwise the solution would be easy :)

 Thanks,

 Justin

 on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
  On Saturday 08 June 2002 09:19, Justin French wrote:
  Hi,
 
  I wish to restrict access to a dir of files, depending on if the user is
  a logged in and validated member.
 
  What kind of files are they? html? php? or others?

The quick answer is, store the files outside of the website's DOCUMENTROOT, 
then serve the files through a script (which naturally checks whether the 
user is logged in).

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Sic transit gloria Monday!
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php