Page 1 of 1

how to hide some part of URL for some security purpose ....?

Posted: Fri Jun 13, 2008 6:47 am
by akhil406
HI all,
I needed one thing in my current project...
if url is like this..
http://localhost/raj/resume.doc
I want to hide that "resume.doc" and also show another name while downloading ....
How can i achieve this in php..
Please any body Help me out......it is very urgent....

Re: how to hide some part of URL for some security purpose ....?

Posted: Fri Jun 13, 2008 7:51 am
by panic!
use apache2 mod rewrite
or

file_get_contents

you can probably work out the rest.

Re: how to hide some part of URL for some security purpose ....?

Posted: Fri Jun 13, 2008 1:29 pm
by RobertGonzalez
And for the record, your urgency is not our responsibility.

Re: how to hide some part of URL for some security purpose ....?

Posted: Sat Jun 14, 2008 1:52 pm
by lonelywolf
function header() maybe suite your purpose. you can send a header to show a dialog box for downloading file, read data from selected file...
read http://php.net/header for more details.