Coordinating with PHP

If a SWF was placed in a PHP file, does it have the ability to read any of the PHP file’s variables? I would like to re-use a SWF on multiple PHP pages and have it behave differently based on certain conditions.

An example is a a PHP URL like showAnimation.php?picURL= and the embedded SWF would do some crazy animation with the picture. How would the SWF be able to read $_GET[‘picURL’] ?

If this is not possible, what other languages could Flash coordinate with? All I need is for Flash to read data from the page it’s embedded in.