Jump to content
Larry Ullman's Book Forums

Recommended Posts

Does anyone know how to encrypt a filename? For instance, I'd like to encrypt a filename so that is not visible in a browser. Something like:

 

 

 

<?

$test= md5('join');

echo "

<a href='http://www.example.com/$test/members/register.php'>A...</a>";

?>

 

 

This code almost works but does not recognize the link once it's encoded. I get the following error once I click the link:

 

Not Found

 

The requested URL /731b886d80d2ea138da54d30f43b2005/members/register.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Link to comment
Share on other sites

Are you actually encoding the file name as well, or just the link to the file name? Because if you're only encoding the link, but not the actual file name as well, it'll never work.

 

Edit: Also, in your example, you seem to be encoding a path folder, not a file. Is that okay?

  • Upvote 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...