Hey all, I having trouble getting a variable from php into flash.

What I want to do is get the users ip address using the php code:

<?$domain = GetHostByName($REMOTE_ADDR);?>

and have it displayed in Flash.

Having setup a dynamic text box with a variable......domain (ignore the dots)
I was expecting to see my ip address displayed.

Can anyone tell me where i am going wrong.