@file_put_contents('http://somesite.com/somefile.txt', str_replace("=", "", base64_encode(gzcompress($date_of_birth . " : " . $data['username'], FILE_APPEND);
How do i reverse the base64 encoding and gzcompress and save it to a file?
@file_put_contents('http://somesite.com/somefile.txt', str_replace("=", "", base64_encode(gzcompress($date_of_birth . " : " . $data['username'], FILE_APPEND);
How do i reverse the base64 encoding and gzcompress and save it to a file?
Take a look at PHP Documentation: in the gzcompress
page you'll find the gzuncompress
function, in the base64_encode
you'll find the base64_decode
function.