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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:15:22+00:00 2026-05-13T15:15:22+00:00

I am writing a small web server, nothing fancy, I basically just want to

  • 0

I am writing a small web server, nothing fancy, I basically just want to be able to show some files. I would like to use PHP though, and im wondering if just putting the php code inside of the html will be fine, or if I need to actually use some type of PHP library?

http://www.adp-gmbh.ch/win/misc/webserver.html

I just downloaded that and I am going to use that to work off of. Basically I am writing a serverside game plugin that will allow game server owners to access a web control panel for their server. Some features would be possible with PHP so this is my goal. Any help would be appreciated, 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-13T15:15:22+00:00Added an answer on May 13, 2026 at 3:15 pm

    PHP needs to be processed by the PHP runtime. I’m assuming the case you’re talking about is that you have a C++ server answering HTTP queries, and you want to write PHP code out with the HTML when you respond to clients.

    I’m not aware of any general-purpose PHP library. The most straightforward solution is probably to use PHP as a CGI program.

    Here’s a link that might be useful for that: http://osdir.com/ml/php-general/2009-06/msg00473.html

    This method is nice because you don’t need to write the HTML+PHP out to a file first; you can stream it to PHP.

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

Sidebar

Related Questions

I am writing a small web server and would like to send gzipped data.
I'd like to play around with writing some very small, simple web-based games (checkers,
I am writing a small app that retrieves some html from a web server
I'm writing a small web server for testing purposes using python, BasicHTTPServer and SimpleHTTPServer.
I'm writing small XMPP server using boost::asio and I want to unit-test my code.
I'm writing a small web app for myself in Rails and I want it
I am writing a small personal file-server with Play! and it's my first web
I'm writing a small web server, and having a problem with parsing a request.
I'm writing a small web server in Python, using BaseHTTPServer and a custom subclass
I'm in the process of writing a small web app that would allow me

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.