This is a simple PHP based example for ATTray's web update feature. It uses PHP and MySQL to store the data between requests.

First, let's create a table to store the data in between requests.
mysql> create table attray (artist varchar(255), album varchar(255), title varchar(255));

mysql> desc attray;
+--------+--------------+------+-----+---------+-------+
| Field  | Type         | Null | Key | Default | Extra |
+--------+--------------+------+-----+---------+-------+
| artist | varchar(255) | YES  |     | NULL    |       |
| album  | varchar(255) | YES  |     | NULL    |       |
| title  | varchar(255) | YES  |     | NULL    |       |
+--------+--------------+------+-----+---------+-------+
Now let's create a file on the web server called updateplaying.php. This file is what ATTray will request when it wants to update the information about what is currently playing.
This script simply gets the three parameters that ATTray sends, empties the attray table and inserts a single row containing the values.
Save the following as updateplaying.php on your web server.
<?php
        $artist = $_REQUEST["artist"];
        $album = $_REQUEST["album"];
        $title = $_REQUEST["title"];
        $db = mysql_connect("localhost", "my_username", "my_password");
        mysql_select_db("my_database", $db);
        $result = mysql_query("delete from attray");
        $result = mysql_query("insert into attray values('$artist', '$album', '$title')");
        mysql_close($db);
?>
<html>
        <body>
                Updated information.
        </body>
</html>

Now we'll create a file called showplaying.php. This file reads the information back out of the database and displays it to the user. This is the code you would want to use somewhere on your site to show what you are currently listening to.
Save the following as showplaying.php on your web server.


<?php
        $db = mysql_connect("localhost", "my_username", "my_password");
        mysql_select_db("my_database", $db);
        $result = mysql_query("select * from attray");
        list($artist, $album, $title) = mysql_fetch_row($result);
        mysql_close($db);
?>
<html>
        <body>
                Now Playing: <?php echo "$artist - $album - $title" ?>
        </body>
</html>


Now in ATTray set the Web Update URL to something like:
http://www.mywebsite.com/updateplaying.php?artist=%A&album=%L&title=%T
Start up ATTray and play a song.
After a few seconds if you go to:
http://www.mywebsite.com/showplaying.php
You should see what your AudioTron is playing!