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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:07:37+00:00 2026-06-06T21:07:37+00:00

For web based applications, why doesn’t PHP need middleware to run – yet languages

  • 0

For web based applications, why doesn’t PHP need middleware to run – yet languages like Java, C#, etc do?

UPDATE:

Re-worded: Why doesn’t PHP need a middle tier, or business layer separating it from the database, whereas the others do.

  • 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-06-06T21:07:39+00:00Added an answer on June 6, 2026 at 9:07 pm

    Assuming that by the term “middleware” you mean “a middle tier”, or “a business layer” the answer is that none of them need it.

    For example, there is nothing to stop you in C# (or more correctly, on the .Net Framework “stack”) from writing code in web pages that directly accesses the database. Indeed, lots of prototypes start out this way.

    The issue here is more around good practice – it is generally considered A Bad Thing(tm) to write web pages (sticking with the same example) that directly access the database and the reasons for this are many. Testability, security, good decoupled code – all these require you to separate your code out, and having several tiers is a natural way to do this.

    Why do you not see as much of this with PHP? I think Jeff’s latest blog post covers this well 🙂

    I’d go as far as to say that C# (the language), .Net (the Framework), ASP.NET (especially ASP.NET MVC) and much of the documentation and tutorials encourage you to do the right thing and not punch a whole from the web page through to the database.

    But there isn’t actually anything stopping you from doing it.

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

Sidebar

Related Questions

I have Java servlet-based web applications. I would like to implement some operations in
I've developed some web-based applications till now using PHP, Python and Java. But some
We've got several web-based applications that are launched from our ERP system (SAP R/3
Apart from performance concerns, should web-based applications be built differently according to the number
I've been looking at web frameworks like Rails, Grails, etc. I'm used to doing
I have a need to send alerts to a web-based monitoring system written in
I have recently been programming Web based applications using Silverlight & Ria Services. I
I need to develop a mailing system in the intranet web-based application that I
I have a number data-driven web based applications that serve both internal and public
We develop a fair number of web-based applications, most of which are hosted on

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.