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 6086693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:47:05+00:00 2026-05-23T11:47:05+00:00

I am creating a small web service which will only be accessed by machines,

  • 0

I am creating a small web service which will only be accessed by machines, not users that simply takes a query string and makes a few MySQL queries. I decided to code this in PHP because it is simple and easy to write and does its job well. My boss however, wants we to write it as a CGI in C (using FastCGI) because he says it will be faster and use less memory. I’m not so keen on this idea for a few reasons:

  • The MySQL API for C seems to have a lot more calls than the equivalent PHP and need a lot more error handling.
  • String manipulation in C is somewhat complicated and messy.
  • The code in C is almost 3 times as long as the equivalent code in PHP and looks rather messy, with lots of error handling.

But that’s just my opinion. What other factors do I need to take in to account? Is C the best tool for this job? Or is PHP?

  • 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-23T11:47:06+00:00Added an answer on May 23, 2026 at 11:47 am

    Some points about this:

    • It’s much easier to implement any web
      service in PHP rather than C, because
      PHP is a language designed to work
      online and C is a general language.
    • C is compiled and this makes it much faster than PHP programs, but if you are really worried about optimization (your program consumes a lot of resources and your hardware is very limited) you can use PHP “accelerators” that compiles the source (for example)
    • Access to databases is equal penalized in both languages, so if your program has to access a lot to DB, it will have a similar performance.
    • The more important: the boss is the boss 🙂
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a small application that I will distribute via NuGet. My web app
I'm creating a small web site that will mostly be used with modern smart
I'm creating a small application on an embedded device that has a boa web
I am creating a small application that will be deployed on Window. The database
I'm creating a small, web based, mail client in PHP and noticed that a
I have develope a small web application in that i am using wcf service,I
I'm creating a small web page using jquery-ui-1.8 which is having a frameset and
I'm building a small web app that allows users to list their goals. I
I'm creating a small application from which users can send mails, appointments and to-do
I'm in the technologies selection phase of a small, single-page web application that will

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.