I am trying to get php to encode after = but before &.
$actual_link = "$_SERVER[REQUEST_URI]";
$out = substr(strstr($actual_link, '?'), strlen('?'));
$out = urlencode(base64_encode($out));
header('Location: http://'.$_SERVER[HTTP_HOST].'/workenv/img/create.php?'.$out.'');
^ That encodes the whole string not each one. For example:
http://www.example.com/data.php?title=hi&apple=true
Would Be:
http://www.example.com/data.php?title=URLENCODEANDBASE64&apple=URLENCODEANDBASE64`