PHP echo command in Flash

I can’t seem to make Flash accept PHP’s echo command. Here is my actionscript:

on (release) {
getURL("<? echo $link; ?>")
}

OR

[LEFT]on (release) {
getURL(“http://www.<? echo $link; ?>.com”)
}

[/LEFT]

I am not that familiar with the compatability between PHP and Flash, so any help would be greatly appreciated. So, is there any way I can make something like this work?