Questions tagged [cgi]

11 questions
8
votes
3 answers

Help understanding server-side scripting

As far as I understand, there are basically 3 options for doing server-side scripting these days: Using scripting languages that can be directly interpreted/executed by the web server (e.g., PHP and ASP), where the scripts are interpreted/executed…
Daniel Scocco
  • 5,832
  • 9
  • 39
  • 47
5
votes
1 answer

How should I handle a HTTP response whose body takes time to generate, and whose headers cannot be determined until generation is complete?

Background My web application lives on a centralised server in the product's "network", and provides the means to manage/configure various distributed devices. The server also logs various statistics that arrive from each device, storing them on…
Lightness Races in Orbit
  • 8,755
  • 3
  • 41
  • 45
3
votes
2 answers

"web-enabling" an existing C++ app

I've got a Windows application coded in C++. I want to provide a web-based interface to them, with a view to porting them to embedded Linux systems. The web pages are a series of dynamic 'status pages' into the system, with possibly some simple…
Roddy
  • 769
  • 5
  • 8
2
votes
1 answer

How can I run a script/subroutine on a Web Server and have that subroutine remain private (eg. Key Generator)?

My Problem: I have been tasked with re-implementing a software key generator routine on an external web server running cPanel v.11.44.1.18. Currently, the key generator is implemented using a proprietary Database Management System (DBMS) which we…
1
vote
1 answer

Why is a servlet more efficient than CGI?

I have been doing some research in to java servlets and I am having trouble understanding why it more efficient then a cgi based solution. The reason for my lack of understanding is that java servlets run on the thread per request model, meaning…
SteelToe
  • 1,539
  • 3
  • 13
  • 22
1
vote
1 answer

What criteria should I use for determining whether or not to terminate a daemon (to restart it later)?

Should a daemon, forked from a CGI script (whenever the CGI script is called and the daemon is not yet running), hang running (most of the time just waiting for a connection) all time, or should it be terminated as soon as there is no more data to…
porton
  • 752
  • 1
  • 7
  • 20
1
vote
2 answers

One C codebase as an standalone application as well as Fast-CGI and Apache module

I'm familiar with C, but haven't written any medium or large application in it. I have a requirement to built an application that can be run as a standalone console application as well as Fast-CGI and Apache module. I'm thinking of implementing the…
Mahdi
  • 1,983
  • 2
  • 15
  • 25
1
vote
1 answer

How to wrap console utils in webserver

I have a big dataset (100Mbs/day) and a bunch of console a TCL/TK tools to view it - I want to turn it into a web app that I can build, and others can maintain. In long: my group runs simulations yielding 100s of Mbs of data daily, in multiple…
Alex Brown
  • 113
  • 4
0
votes
1 answer

CGI Scripts and Python / Ruby

I am new to web programming. Now unfortunately, I was a kid during the advent of the world wide web and didn't have access either. So now when I am just starting out, it feels like there's a myriad of concepts to learn and understand. For example,…
Silver
  • 103
  • 3
0
votes
2 answers

Is Perl outdated for CGI and FCGI?

When we did web development in 1996 it was CGI, FCGI and Perl on the backend. Now why is Perl not that popular anymore and instead we use Java, Python, Go, PHP, C# and everything but Perl? To me it seems that Perl should be good since it has had…
Niklas Rosencrantz
  • 8,008
  • 17
  • 56
  • 95
-2
votes
2 answers

Simple questions about apache and cgi

I'm just learning about using cgi in html files. I've read a lot of stuff on the web, but most of it is all about the trees and not enough about the forest. I'm a top-down learner and I'm having trouble understanding what's going on with cgi,…
bev
  • 407
  • 4
  • 10