# PHP Sockets with Flash 8

**URL:** <https://forum.kirupa.com/t/php-sockets-with-flash-8/210466>\
**Category:** flash\
**Created:** [December 18, 2006, 11:56pm UTC](https://forum.kirupa.com/t/php-sockets-with-flash-8/210466 "2006-12-18T23:56:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lou](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@Lou](https://forum.kirupa.com/u/Lou)\
**Post date:** [December 18, 2006, 11:56pm UTC](https://forum.kirupa.com/t/php-sockets-with-flash-8/210466/1 "2006-12-18T23:56:21Z")

</div>

I’ve been trying to set up my own Flash chatroom by following obiAdmin’s tutorial ([http://www.kirupa.com/developer/flash8/php5sockets\_flash8.htm](http://www.kirupa.com/developer/flash8/php5sockets_flash8.htm)). I have my own Apache 2.2 server running locally along with PHP 5.2. I hope they are set up right, when I run a test page including some PHP it seems to work.

At the end of the tutorial, it tells you to set up a batch file to run the scrpit through command prompt. The batch file:

```auto
e:/web/php/php.exe -q e:/web/php/socketTut.php

```

When I execute the .bat through command prompt it spits out:  
“PHP Fatal error: Call to undefined function socket\_create() on line 30”

Does this mean that you have to declare this function earlier in the script?
