RE: [PHP] Stopping users to see uploaded files

2005-05-30 Thread Kim Madsen
 -Original Message-
 From: symbulos [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 27, 2005 6:50 PM
 To: php-general@lists.php.net
 Subject: RE: [PHP] Stopping users to see uploaded files
 
 Thanks everybody for all the useful suggestions.
 
  That way´s just fine. You could upload directly to the dir outside
  webscope if You like?
 
 How do we do that?
 
 Thanks in advance.

Well, I´ve got NO clue how the setup is on the server, where You are running 
the scripts. Let´s say You have Your own server or has a directory, mostly 
called public_html, where You upload files then it should be piece of cake. 
Current Setup:

~user/public_html // containing all your php files

Add a new dir: ~user/tmp (or upload)

And have the uploaded files uploaded into that dir (don´t forget permissions)   

--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper

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



RE: [PHP] Stopping users to see uploaded files

2005-05-27 Thread Kim Madsen
 -Original Message-
 From: symbulos [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 27, 2005 1:00 PM

 Unfortunately, that means every person who connects to the directory can
 see
 the files. If some of the files are for sale, how do you stop the user
 from
 seeing them / downloading them without permission?

Move them _outside_ webscope and generate a download with the header() 
function, which is only is executed if the user has access.
 
 Is there any other way to upload files using php?

That way´s just fine. You could upload directly to the dir outside webscope if 
You like?


--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper

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



RE: [PHP] Stopping users to see uploaded files

2005-05-27 Thread symbulos
Thanks everybody for all the useful suggestions.

 That way´s just fine. You could upload directly to the dir outside
 webscope if You like?

How do we do that?

Thanks in advance.

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