PHP Sockets with Flash 8

I’ve been trying to set up my own Flash chatroom by following obiAdmin’s tutorial ( 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:

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?