# Detecting environment

**URL:** <https://forum.kirupa.com/t/detecting-environment/262386>\
**Category:** Uncategorized\
**Created:** [June 5, 2008, 3:36pm UTC](https://forum.kirupa.com/t/detecting-environment/262386 "2008-06-05T15:36:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![activa](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@activa](https://forum.kirupa.com/u/activa)\
**Post date:** [June 5, 2008, 3:36pm UTC](https://forum.kirupa.com/t/detecting-environment/262386/1 "2008-06-05T15:36:08Z")

</div>

I’m working on a project that gets PHP variables. How can I detect whether the swf is being played in a browser or in the flash player (or IDE)? It would make debugging a lot easier.
