The question is, how are you getting the status at all? If you're trying to get the status from a webpage, obviously you cannot use a url requiring the status *beforehand* http://mysite/irckey.php?nick=$nick&status=$userstatus That expects you to already have the status when you make the geturl...