Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Flash doesn't capture REFERER even now?

Want php to capture HTTP_REFERER

5:36 pm on Oct 4, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Mar 29, 2003
votes: 0


Sorry to rejuvenate an archaic thread but just wanted to know if anyone has figured this out? I'd like my movie to be able to call a PHP file, and deliver the referer URL to php.


Page 1 --> Page 2 SWF --> Page 3 PHP called inside SWF

I'd like Page 3 to be able to get Page 1 as the referer.

Appreciate pointers!

4:28 am on Oct 5, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Mar 28, 2004
votes: 0

You can send headers using addRequestHeader() when using loadVars or loadXML. Look it up in the help. You can't set certain headers (like referer), but you can create your own for your own purposes.


10:10 am on Oct 6, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Apr 30, 2006
votes: 0

If page_2 (that has flash on it) is a php page then $_SERVER has referer information. I don't see why you wouldn't get page_2 to communicate with page_3 at parse time on the server.

If you really want to have flash send page_3 the referer you could pass flash the $_SERVER['http_referer'] like this:

src="../media/flash/style3/flashmovie.swf?referer=<?= $_SERVER['http_referer']?>">"

then the var referer will be available at _root on frame 1 of your movie. Then you can send if to page_3