# How to: PHP XMLSocketServer

**URL:** <https://forum.kirupa.com/t/how-to-php-xmlsocketserver/294972>\
**Category:** programming\
**Created:** [August 23, 2009, 6:15pm UTC](https://forum.kirupa.com/t/how-to-php-xmlsocketserver/294972 "2009-08-23T18:15:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arundracula](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@arundracula](https://forum.kirupa.com/u/arundracula)\
**Post date:** [August 23, 2009, 6:15pm UTC](https://forum.kirupa.com/t/how-to-php-xmlsocketserver/294972/1 "2009-08-23T18:15:55Z")

</div>

I want to create a chat like application with the help of PHP and Flash;

I have searched a lot and looked the tutorial in kirupa also.  
I understood the working, code; but not the installation and setup;

Most of them are for windows…

My hosting service is Linux and my testing service is windows.

Actually I need a very simple understandable code to test whether it is working in both my services. Then only I expand it to my needs.

I have a doubt with that first line #!/usr/bin/php -q. How do I know what is to put here.  
And also localhost ip, address in both flash and PHP.

Please help me. I really need this… Some simple helps and if it is working I can try to do some extras…
