Page 1 of 1

getting URL of flash.swf that is calling php

Posted: Fri Oct 21, 2005 7:19 pm
by dsdsdsdsd
hello;

imagine a http://www.blah.com that EMBEDS http://www.booger.com/flash.swf which is using a loadVariables object to communicate with http://www.booger.com/my.php;

I would like for my.php to find the URL of the hosting/calling/embedding page, ie http://www.blah.com ;

any thoughts?

thanks
dsdsdsdsd

Posted: Fri Oct 21, 2005 9:27 pm
by feyd
it very very very likely cannot find such information. The flash file would have to send it during the request..

Posted: Fri Oct 21, 2005 10:24 pm
by dsdsdsdsd
hello feyd;

that is my thinking also; however I am being told that flash does not know the URL of the webpage that is EMBEDDING it;

question: when Flash does a sendAndLoad("some.php" , ... ) how does the php know where to return the results?

dsdsdsdsd

Posted: Fri Oct 21, 2005 11:45 pm
by feyd
the TCP protocol tells it where to return the data, technically. It's simply responding to the Flash file, wherever it's being called from. The page that embeds the Flash is, sadly, irrelevant at that point.

Posted: Sat Oct 22, 2005 1:01 am
by dsdsdsdsd
I appreciate your response