Unfortunately, there isn't even a %20 to replace.
The PHP script is being linked and viewed from within the AOL Instant Messenger profile window, which is a minibrowser in and of itself. The actual link looks like this:
http://localhost/view.php?p=profile&id=%n
Within the AIM profile window, %n is automatically replaced with the current screenname viewing the profile. So if your screen name was "Screen Name", you would see the link as:
http://localhost/view.php?p=profile&id=Screen Name
Now, if you were to copy and paste that into a normal browser window, you would get:
http://localhost/view.php?p=profile&id=Screen%20Name
Which is just fine and dandy with me and PHP. However, if I echo $QUERY_STRING within the AIM profile window, I simply get:
http://localhost/view.php?p=profile&id=Screen
Anything after the space seems to be invisible to my script. What bothers me is that I KNOW it's possible to get around this problem. This same service (having a dynamic profile within your AIM profile) is provided by http://www.subprofile.com and they can handle the spaces. I realize that this seems like a silly use for PHP, but I just needed a little project to get me started. Little did I know I'd run into problems due to the shortcomings of AIM.
Any ideas?