1

I am building a PHP comet based application. Which web server should I use in the backend? Apache / nginx (this is what most forums say) or something else would be better?

2 Answers 2

1

I would recommend not using PHP at all for this purpose. PHP is synchronous, therefore every open comet connection will block a PHP process (or Apache process if mod_php). Here an asynchronous language shall be used, JavaScript for example. (See Node.JS. If you are using comet for a chat, have a look at node_chat)

Sign up to request clarification or add additional context in comments.

Comments

0

I'm building a comet app too, i guess apache + php (a classic) and APE with comet server beside may be a great solution

ape-project.org/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.