Re: secure document : solution wanted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Duncan Hill" <dhill+php@xxxxxxxxxxxx> wrote in message 
news:200504061633.44950.dhill+php@xxxxxxxxxxxxxxx
> On Wednesday 06 April 2005 16:23, Charles Hamel typed:
>> Hi
>>
>> I am bulding a secure intranet.(php, mysql, apache)
>> I am using a session and Mysql to handel the user accounts. Everythying
>> works fine with that.
>>
>> The client now needs to share word/pdf document with the registered user. 
>> I
>> created a secure directory using .htaccess for this purpose and it works 
>> as
>> well .... the user are promt to enter a username password.
>
>> I was expecting this to work ...
>> http://username:password@xxxxxxxxxxxxxx/safeDir/Word.doc  but it isn't.
>
> IE dropped support (or severely neutered it) for username:password in URLs 
> a
> while back.
>
> One way to handle this is to write a wrapper script that accepts the file 
> name
> as a parameter.  The script verifies that the user is allowed to access 
> the
> file, and sends back the file with appropriate content type etc.  Files 
> can
> then be stored outside of the document root, preventing access even if you
> guess the file name.

Can you provide a little more infos about wrapper scripts ... first time 
earing about this expession.

Can this script be written in php ... or it is some kind of cgi?  Any 
exemple online of these type of script that a could study to make my own?

Thanks
Charles 

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux