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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:21:51+00:00 2026-05-22T18:21:51+00:00

Sorry in advance if my wording is wrong because I’m not quite sure how

  • 0

Sorry in advance if my wording is wrong because I’m not quite sure how to explain what I want, so I’ll just describe the end result.

I have a php based excel tool called socialcalc(it was wikicalc before). I want to allow users to connect to a database and pull live data onto the sheets(so they can run calculations on it).

I understand that for sure socialcalc will have to query mysql but I’m trying to figure out the most effective way. Is it better to allow it to query it directly? or should I have it query the database an get an xml file as a result? Or what other ways would you suggest is a efficient and secure way of allowing read access to the data?

We’re building alot of the this ontop socialcalc from scratch so pretty open to all solutions but ultimately, we want this to power other services.

Update: to clarify, I am looking for suggestions on using SOAP/XML over say directly querying the database or using HTTP POST/GET,etc..which type of service layer would you suggest or what are the factors to consider when choosing?

  • 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-22T18:21:51+00:00Added an answer on May 22, 2026 at 6:21 pm

    “Simple is better than complex.”

    You could certainly implement a Web Service layer between your application and MySQL, but ask yourself why you would want this. You might want it because:

    1. You plan on changing backend systems at some point in the future and don’t want to have to refactor business logic in the front-end application

    2. You want to expose your backend data to other applications and provide a common interface for doing so

    3. You want to implement smoe sort of caching/persistence strategy in the middle tier

    All of those would be valid, good reasons to use a Web Service layer between your application and your database. Certainly there are more valid, good reasons as well.

    If you can’t think of a reason why you should implement a Web Services layer, then don’t, it’s that simple. You can always decide to later when there is a good reason.


    EDIT:

    So you’ve decided to go ahead with the Web Service…congrats! I think in that case you should look at two key frameworks to save you a lot of time:

    1. Get a good ORM framework that can generate the vast majority of your CRUD logic. Doctrine is a popular choice for PHP.

    2. Use a Web Services framework for implementing your interfaces and business logic. I’ve done this in the past using the Zend Framework, as they support both XML and JSON payloads via REST. XML and SOAP are great if you need strict data validation requirements, but if you’re the only one consuming your own Web Service, you don’t need to impose such limiations on yourself, as you know your requirements. In that case, JSON should be sufficient.

    By the way, I’ve discussed RESTful services via Zend in another previous question:

    lightweight RESTful PHP server

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

Sidebar

Related Questions

I'm very sorry if I'm wording this wrong in advance but I have a
sorry in advance for any orthographic mistakes (english is not my first language). I
I'm sure this is a newbie question so sorry in advance. I've read a
I'm sorry about the terible wording of my question but I wasn't sure how
Sorry in advance for the long question, it's long because I've been digging at
All, Sorry in advance - I'm not a PHP expert or knowledgeable in design
Sorry in advance for this being such a beginner question. Here are the steps
Sorry in advance everyone for this question as I know the cascading select boxes
In advance: sorry for the noob question but I'm learning Cocoa & Objective-C and
I am new to JPA and JBoss, so sorry in advance if this is

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.