Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6189757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:28:08+00:00 2026-05-24T02:28:08+00:00

Hi i am writing a socket server , At the moment i have 2

  • 0

Hi i am writing a socket server , At the moment i have 2 options

  1. Go with PHP

  2. Go with C++


The thing i need to know is that which of them is more reliable and scalable.After searching google a lot i found out that pretty much C++ can take care of my Scale needs but the thing is C++ requires much more coding then PHP moreover deployment is a bit harder on C++ .

PHP sounds promising (because of native API’s for SQL & SOCKETS also its easier to deploy on cross platforms ) but I have no clue on how scalable the PHP based server can be.At the moment i want to support atleast 1k – 2k concurrent connections . Can PHP take this load ?

Also is there any way to implement Multithreading in PHP (so that i can part the workload on 2 or more threads rather then 1 overloaded thread holding all users and there requests).


Incase needed My server is a basic machine.

Processor : AMD Sempron 3000+

RAM : 2 GB

HDD : 80 Gigs

I plan to move to a faster server after some time .

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:28:11+00:00Added an answer on May 24, 2026 at 2:28 am

    PHP is definitely a bad choice – no threads – your basic architecture would be to fork() a process for every connection. Not fun.

    C++ is probably the way to go, though you might other interpreted languages and evaluate them.

    Before committing to writing something in C++, I’d certainly consider an event-driven server-side-javascript approach (see http://nodejs.org), or possibly something python (twisted?) or ruby-based.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a socket server which I am writing in C++ and a client
We are writing a socket server in c# and need some advice on the
Hi i am writing a socket client/server application in VB6. i have the following
I am writing a server that receives SOAP 1.2 messages. The problem I have
I am writing a socket program with Java and have a host that clients
I'm writing a socket server that requires the ability to allow/restrict by IP and
For learning purposes I am writing a socket based client/server application. I have designed
For learning purposes I am writing a socket based client/server application. I have designed
I'm writing a web application that talks over network socket to a server that
Hi i have a client connecting to a socket server in php. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.