Tutorial not working

Hello,

I downloaded the files from kirupa,
http://www.kirupa.com/developer/flash8/php5sockets_flash8_6.htm

i was able to run.

When i publish as html and run it it’s not working. What should i have to do to make it run in browser.

Thanks.