I don't see any syntax error in those lines you posted (no, although the @ isn't necessary, it's not causing the problem either). Are you sure the code you've posted is a straight cut-and-paste from the offending script?
If that's the last bit of PHP on the page, then chances are you've got an unmatched { floating around somewhere higher up.
Oh, and here's a question - when did $url become an object with a Close() method? In the other bit of code it's a string.