PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Oct 19, 2019 11:45 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Nov 14, 2011 7:53 am 
Offline
Forum Newbie

Joined: Mon Nov 14, 2011 7:36 am
Posts: 1
PHP 5.3, Apache 2.2
The ppt files can be downloaded by our clients,
the ppt links like: http://www.test.com/ppt/example.ppt

before downloading, there is a function to check the clients' authority, even the clients provide the links to the anonymity , however the anonymity could not download either.

how to make it ? thanks a lot!


Top
 Profile  
 
PostPosted: Mon Nov 14, 2011 4:20 pm 
Offline
DevNet Master
User avatar

Joined: Sun Feb 15, 2009 12:08 pm
Posts: 2794
Location: .za

_________________
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering


Top
 Profile  
 
PostPosted: Mon Nov 21, 2011 4:23 pm 
Offline
Forum Contributor

Joined: Mon Nov 21, 2011 4:40 am
Posts: 142
PHP side:
Use rewrite mod to rewrite URL from:
/ppt/filename.ppt to e.g. /?ppt=filename.ppt
Display password form before downloading, return ppt header later and file content (if pass matches)


Apache side:
Use .htaccess to limit user access
<- this one is old you may need to find newer one ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group