# AS3 PHP small question

**URL:** <https://forum.kirupa.com/t/as3-php-small-question/312190>\
**Category:** flash\
**Created:** [July 27, 2010, 6:29pm UTC](https://forum.kirupa.com/t/as3-php-small-question/312190 "2010-07-27T18:29:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jany](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jany](https://forum.kirupa.com/u/jany)\
**Post date:** [July 27, 2010, 6:29pm UTC](https://forum.kirupa.com/t/as3-php-small-question/312190/1 "2010-07-27T18:29:00Z")

</div>

I can talk to PHP from AS3. Question though. Do I need to set up a listener in flash/as3 or something, for this kind of a scenario?

Let’s say I goto this webpage (currently my localhost, and it works)  
[http://localhost/hello.php?my\_id=555](http://localhost/hello.php?my_id=555)

That number “555” is arbitrary, and could be any number. If I want to type in 555, or 345, or any number, how would I have it talk to my AS3?

The way I have it is, I published my FLA as an HTML and SWF file. I then just took the HTML file, and made it a PHP file. I have this PHP on the top:

```php
<?php
$my_id = $_REQUEST['my_id']

```

I can echo it no problem.

```php
echo "this is " . $my_id;
?>

```

Again, how would I have this then talk to my AS3? Do I need a timer or a listener to constantly listen to see if that number changes? tyty
