getting URL of flash.swf that is calling php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dsdsdsdsd
Forum Commoner
Posts: 60
Joined: Fri Dec 05, 2003 3:10 pm

getting URL of flash.swf that is calling php

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it very very very likely cannot find such information. The flash file would have to send it during the request..
dsdsdsdsd
Forum Commoner
Posts: 60
Joined: Fri Dec 05, 2003 3:10 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
dsdsdsdsd
Forum Commoner
Posts: 60
Joined: Fri Dec 05, 2003 3:10 pm

Post by dsdsdsdsd »

I appreciate your response
Post Reply