On Tuesday 09 March 2004 07:50, [EMAIL PROTECTED] wrote:

> > username:[EMAIL PROTECTED]/directory/to/protect

[snip]

> Is there any other possible way to login dynamically with a script to
> access files ? If not i'll have to store the files outside the web
> directory and header load them. These are flash video files i am loading
> externally into a main flash container which is why i need to put the login
> information into the url to access the file. In particular i dont want a
> cookie set so then the user can then be able to access the directory after
> that, i only want the script to be able to access it .

How exactly does your protection scheme work?

If you're using PHP to read files (from a .htaccess protected directory) there 
is no need to use:

  username:[EMAIL PROTECTED]/directory/to/protect

PHP is not subjected to the restrictions imposed by .htaccess files and can 
read protected files directly.

If on the other hand you're sending:

  username:[EMAIL PROTECTED]/directory/to/protect

to the browser so that it can seamlessly download the protected files then no 
real protection has been achieved because anyone can link to those 
'protected' files not just your script.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Money and women are the most sought after and the least known of any two
things we have.
                -- The Best of Will Rogers
*/

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

Reply via email to