I'm going crazy. I did this so many times and now it's not working.

I have this line on a page:
PHP Code:
header("Location: $url"); 
I tried to output the same thing on the page, without the redirect and it outputs what is set in $url.
But when I write that line, it doesn't redirect. Am I doing something wrong with the " ?