When using Rich Media, I ran into a strange problem. It
seems that IE messes up the urlencode/serialize process
with URLs that contain &'s in them.
Basically, a url such as:
http://www.domain.com/somesite.php?ad=5769&or=8765
will not deliver a clickthrough correctly under IE. Testing
via the management console works fine, and Mozilla also
seems to work fine.
Basically, from what I can gather, IE decodes the
encoding, which then causes a split in the serialized
data due to the '&' in the URL.
I haven't been able to come up with a fix that works
across all browsers yet. It may be something that
something is stated to warn people not to use &'s in
their URLs since IE will cause problems with them.
Another possibility would be to maybe base64_encode
the serialized data instead of using urlencode.
(That last thought just came to me, so I'll do some
testing in it)
Logged In: YES
user_id=356112
Testing using base64_encode works fine on both IE and
Mozilla.
Replacing:
$clickthru = urlencode (serialize ($clickthru));
with:
$clickthru = base64_encode (serialize ($clickthru));
in retrieve_creative(), then replacing:
$clickthru = unserialize (stripslashes ($ct));
with:
$clickthru = unserialize (base64_decode (stripslashes ($ct)));
seems to do the trick! Tested with Mozilla 1.7 and IE
6.whatever in WinXP.