Page 1 of 1

Need help with URL encoding

Posted: Fri Jul 15, 2005 12:19 am
by jeephp
Hi,
I need some help with URL encryption or something similar. For example I have a URL http://www.myurl.com/search.php?iu=321x ... &u=12qazxq but I do not want it to be displayed with the parameters rather I would like it to be displayed as http://www.myurl.com/search.php?id=eru3 ... 47ueir3948

What is the best and the most secure way to do this in PHP, I am developing the site on Windows 2003 Enterprise Server Platform and hosting in IIS 6.0.

Does PHP have some inbuilt function to do this or I would have to use a 3rd party tool for this.

Any advice on this would be highly appreciated.

Thanks

Posted: Fri Jul 15, 2005 12:40 am
by anjanesh
For Apache you can use mod_rewrite
Since yours in IIS, you can display links encrypted using mcrypt functions.
Using url_encode is of no use here because any can url_decode the link. You'll need to encrypt it with some key.

Posted: Fri Jul 15, 2005 5:16 am
by timvw
It appears you are trying to reinvent http://www.php.net/sessions