I\'m trying to send encrypted data over the url to another site (using file_get_contents(\"anotherUrl.php?hash=$encryptedString\"). The problem is, sometimes, t
file_get_contents(\"anotherUrl.php?hash=$encryptedString\")
Take a look at this thread:
Passing base64 encoded strings in URL
Essentially you DO want to urlencode() before sending the string, however you do NOT want to urldecode() at the other end.
urlencode()
urldecode()