Mishari wrote:

Hi All

I built a MySQL table for all authorized users and
their password , when user correctly enter his
username and password he can access to a PHP site that
contains a link to all document he need

When he click on one of the document to he can
download it, the URL will appear : http://www.myweb/data/data.pdf


My problem is if any one get this URL or the path he
can get the document without authorized.
I need a way in which any one who try to get these
document from the URL get a message to ask him to
Login.

tore them below the web root, and create a script which takes the name of the file being downloaded. If the user has correct access, it passthru()s the file. If not, it shows a login screen.

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.



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



Reply via email to