in reply to system() frustration

Heh. Chomping $newurl did the trick. And thanks to the other replier for the cooler way to grab the url. :)