Base64 Encode
| From: | Stephen | Date: | Sun, 02 Feb 2003 03:02:33 +0000 |
| Subject: | Base64 Encode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133949@lists.php.net to get a copy of this message | ||
I have a PHP script that works on older versions of PHP but on 4.3, it
outputs nothing. Here's my code:
<?php
echo '<SCRIPT language="JavaScript"
type="text/javascript">'."\n"
."\n".'if (document.location == top.location)'."\n"
.' top.location="home.php?goto='
.base64_encode($_SERVER["REQUEST_URI"]).'";'."\n"
.'</SCRIPT>';
?>
The problem is, when it redirects, the URL variable goto is empty. I'm
assuming this has something to do with base64_encode. Since this code snipet
is on every page of my site, it'd be a hard hassle to change it so is there
a setting in PHP I need to tweak or should I set aside a few hours to edit
this code? If the latter, what should I change it to?
Thanks,
Stephen Craton
http://www.melchior.us
"What's the point in appearance if your true love, doesn't care about
it?" -- http://www.melchior.us