can anyone tell me how to encrypt and decrypt a URL string ?
I want to encrypt a hyperlink ...
can anyone tell me how to encrypt and decrypt a URL string ?
I want to encrypt a hyperlink ...
If you can use database,you could create a table to map a file to an id.
Create a 'mapping_table'
id - integer
file_location - string
Your URL would look something like localhost/waterwell/e_book.php?id=12
.
make links that return to your server with querystring GET params identifying the file. the server can then do echo file_get_contents()
after you figure out which file from the inputs
In your example it's trivial. simply omit the portion of the url you don't want shown and fill it back in on the server.