cgi

Changing cgi to Fastcgi

How feasible is to change a C/C++ cgi application to Fastcgi? Does this require only change in code? Or will it require a change in the setup of apache server? What will be the obvious benefits of the change? Is the change from cgi to Fastcgi worth the benefits? ...

How can I extract text, save it, then output it to web?

I am searching for HF50(HF$HF) for example in "MyFile.txt" so that the extracted data must save to "save.txt". The data on "save.txt" now extracted again and fill the parameters and output on my table. But when I tried the code, I've got no output and "save.txt" is blank.? Var $HF is not recognized whatever I type. Please help. #! /usr...

How Python web frameworks, WSGI and CGI fit together

Hello, I have a Bluehost account where I can run Python scripts as CGI. I guess it's the simplest CGI because to run I have to define the following in .htaccess: Options +ExecCGI AddType text/html py AddHandler cgi-script .py Now, whenever I look up web programming with Python, I hear a lot about WSGI and how most frameworks use it. ...

What's a good resource for learning CGI programming in Python?

I need to write a browser interface for an application running embedded on a single board computer (Gumstix Verdex for anyone who's interested), so I won't be able to use any web frameworks due to space and processor constraints (and availability for the environment I'm running in). I'm limited to the core Python and cgi modules to crea...

PHP as a thttpd module vs CGI in terms of memory usage

I am planning to use php in an embedded environment. Our current web server is thttpd. I am considering two options now: whether to run it as a cgi or as SAPI module. I know cgi has advantage in terms of security. But if we are to use php as cgi, an instance of the php should be loaded into the memory for each request. I have tried comp...

Configure EasyPHP to use CGI

I'm trying to modify my EasyPHP to run in CGI mode. According to this link: http://www.easyvitools.com/phpserial/php_ser_reference.html I have to add in this line: LoadModule php5_module "C:/Program Files/EasyPHP 2.0b1/php5/php5apache2.dll" to httpd.conf However, everytime I do that, EasyPHP gives me this error: Error in Apache con...

Including a dynamic image in a web page using POST?

I have written a CGI script that creates an image dynamically using GET data. To include this image in my webpage, I am using the following code: <img src="image.py?text=xxxxxxxxxxxxxx"> The problem is that I expect in the future the "text" field will get very long and the URL will become too large. From Googling around there doesn't ...

JOGL -Does it work? Questions + Comments and experiences

The story: I been googling for some way of displaying computer graphics over the web using acceleration from video cards (no software renders). I know it is possible to write and activeX module for IE but that is not a complete solution as that would alinate a good amount of users (firefox + macOS fans). Here is an example of more less ...

How do I get HTMLDOC launched from a CGI-script?

Task Have a CGI-script which produces an .*pdf file from the html-content/page Problem: When launched from the web browser, there is no creation of the pdf document. Steps So far: chmod settings set to above recommended (777) tested normal output to file from the script, which works fine when run locally on the server from the comma...

Can I create a unique filename based on ProcessID and ThreadID?

I have a delphi (Win32) web application that can run either as a CGI app, ISAPI or Apache DLL. I want to be able to generate a unique filename prefix (unique for all current requests at a given moment), and figure that the best way to do this would be to use processID (to handle CGI mode) as well as threadID (to handle dll mode). How wo...

Using python to build web applications

This is a follow-up to two questions I asked a week or so back. The upshot of those was that I was building a prototype of an AI-based application for the web, and I wondered what language(s) to use. The conclusion seemed to be that I should go for something like python and then convert any critical bits into something faster like Java o...

How can I use a database server from a Perl CGI script?

My program works already, I have Perl (GUI Window) where I can input data, data passed to the webpage (using to Tomcat server, JSP) and then saved it to oracle database. What I want is to make search parameter (webapp) that retrieve/extract data from the Oracle database using Perl CGI. Is it possible? Or any suggestions to solve my progr...

How can I prevent database being written to again when the browser does a reload/back?

Hi there, I'm putting together a small web app that writes to a database (Perl CGI & MySQL). The CGI script takes some info from a form and writes it to a database. I notice, however, that if I hit 'Reload' or 'Back' on the web browser, it'll write the data to the database again. I don't want this. What is the best way to protect ag...

Why do I need to explicitly output the HTTP header for IIS but not Apache?

I am trying to set up apache instead of IIS because IIS needlessly crashes all the time, and it would be nice to be able to have my own checkout of the source instead of all of us editing a common checkout. In IIS we must do something like this at the beginning of each file: use CGI; my $input = new CGI(); print "HTTP/1.0 200 OK"; prin...

What's the best way to write a Perl CGI application?

Every example I've seen of CGI/Perl basically a bunch of print statements containing HTML, and this doesn't seem like the best way to write a CGI app. Is there a better way to do this? Thanks. EDIT: I've decided to use CGI::Application and HTML::Template, and use the following tutorial: http://docs.google.com/View?docid=dd363fg9_77gb4...

Which C++ Library for CGI Programming?

I'm looking at doing some work (for fun) in a compiled language to run some simple tests and benchmarks against php. Basically I'd like to see what other people use for C++ CGI programming. (Including backend database, like mysql++ or something else) ...

How can I get a header that will work with IIS 6, 7 and Apache?

Hello all, I am trying to get a header that will work with Apache, IIS 6, and IIS 7. I won't go into the reason for that here. Let's just say that it's not as easy as I thought it would be :-) Anyway, the problem has something to do with NPH. In our code (originally written for IIS 6) we have use CGI qw(:standard); print "HTTP/1.0...

Set cookies in a php cgi enviroment without using php api

How can I use cookies in a php CGI Enviroment without using any api functions from PHP? ...

How do I programatically restart a system service(not apache) from apache in linux?

I need to simple way to allow an end user to restart tomcat from a web page served from apache on the same box. We're trying to make it easy for our QC department to deploy a new version of our webapp to apache. We're using samba, but we need an easy way for them to stop / start the tomcat server before/after the deployment. This would...

How do I set LC_ALL and LANG under IIS?

I am trying to run some Perl CGI scripts under IIS. I get the following message : CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LAN...