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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
akhil406
Forum Newbie
Posts: 1
Joined: Fri Jun 13, 2008 6:41 am

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

Post 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....
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

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

Post by panic! »

use apache2 mod rewrite
or

file_get_contents

you can probably work out the rest.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

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

Post by RobertGonzalez »

And for the record, your urgency is not our responsibility.
User avatar
lonelywolf
Forum Commoner
Posts: 28
Joined: Tue Jun 10, 2008 6:15 am

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

Post 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.
Post Reply