[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

How feasible is it to translate this Ruby websocket / flashsocket server into PHP?

Asked by idsnews in PHP Scripting Language, Ruby Scripting Language

Tags: PHP, Ruby, websocket, flashsocket, server

How feasible is it to translate this Ruby websocket server to PHP?

http://github.com/gimite/web-socket-ruby/blob/master/lib/web_socket.rb

I know a little bit of Ruby and a decent amount of PHP, thought I've never done socket programming. I'd like to build a chat app on top of what gimite has put up on git, but all my sites are in PHP. How hard do you guys think it would be to rewrite those 300 lines in PHP?

Is it possible?
If it is, will it be difficult?
What would be the most difficult part?
Would PHP take any performance hits? Am I better off trying to integrate that Ruby server into my PHP site by moving session management into the DB instead of attempting to translate it?

Thank you for your time.
[+][-]10/27/09 03:38 PM, ID: 25678481Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625