i've read that php doesn´t scale well if a lot of users are using your comet implementation?
Where?
There's a lot of nonsense published about scaling and programming languages.
Certainly there are isues with using PHP for comet - but nothing to do with concurrency, other than the fact that comet does not scale well (a non-coment web based app is not limited by the number of concurrent sessions, and uses less memory).
The main consideration is memory-management: PHP was designed for request-reply type operation - where all the data can be cleared down between iterations. If you are writing OO code in your server, then you should definitely think about using the circular reference checker.
what is a socket server and does it fix that problem?
err....you don't know? A socket server is a generic description of a server which uses sockets to communicate - e.g. a webserver, a mail server a file server....
Although it's possible to implement a socket server in PHP (or in many other languages) it doesn't the address the memory management problem in PHP.
C.