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

  • Home
  • SEARCH
  • 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 6771251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:24:36+00:00 2026-05-26T15:24:36+00:00

I first learned web programming with php a while back. It has some features

  • 0

I first learned web programming with php a while back. It has some features that I find very helpful, but the overall language is not something I enjoy, just as a matter of personal preference. I am wondering what alternatives I could use to provide similar functionality using a different underlying programming language (Python? Ruby?).

What I am looking for:

  • general purpose programming capability
  • in-line server-side code embedded in HTML (i.e. I want to be able to make my documents pure HTML if desired, rather than demanding special syntax even where I don’t want dynamic content)
  • access to request parameters
  • ability to send headers, set cookies, etc

Preferably:

  • does not require a separate server process
  • easy to connect with Apache

Does anyone have any suggestions?

One thing I tried to do was embedded Ruby (erb) through CGI. This looked like a good fit on paper. Unfortunately, I was not able to get it to work, because I was following a few different guides and the result of combining them did not work out. At any rate, it seems this would not allow me to set arbitrary headers (and more importantly, use sessions and cookies).

Note: I’m not looking for a full web framework at the moment. Just relatively small amounts of dynamic content among otherwise HTML pages.

Thanks!

  • 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-26T15:24:36+00:00Added an answer on May 26, 2026 at 3:24 pm

    You’ve hit on the big reason why PHP is so popular – it has all of those pieces in a server-embeddable package. There aren’t really many solutions with its ease of deployment; PHP is written specifically for what you want, which is both its strength and weakness. It’s why it’s such a weak general-purpose language, and why everyone and their dog knows it. It’s everywhere, and the barrier to entry is near zero.

    PHP is a language plus templating plus a web framework all baked into one package. To get an equivalent, you’re going to need a web framework, even if it’s a small one. Something like Sinatra is a super lightweight way to do similar in Ruby, though it requires a separate server process.

    You could look at something like Perl with cgi.pm, but it may be a step in the wrong direction if you’re wanting something cleaner than PHP.

    I don’t know Python packages well enough to offer suggestions there, but Twisted makes it easy to bind a Python program to a web interface. That does end up running in its own server process, though.

    You’ll need to do a little more work than your standard PHP deploy if you want to use something besides PHP, but that’s often a choice that people consider to be a reasonable tradeoff for gains in productivity.

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

Sidebar

Related Questions

When I first started programming, I wrote everything in main. But as I learned,
Ruby (and the Rails framework) is the first new programming language that I've learned
One of the first things I learned in C++ was that #include <iostream> int
First, let me say that I'm a complete beginner at Python. I've never learned
I am a newbie and just learned that if I define say package my.first.group.here;
One of the first things I learned as a web developer was to never
I have an existing PHP MySQL web app that I want to make an
I'm taking some AI classes and have learned about some basic algorithms that I
A while back, I learned a little bit about big O notation and the
One if the first things I learned when I started with C# was the

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.