I have a perl script which when run from the command line generates a text file of data with a specific format for use by another application. The script also prints informational warning messages on stderr. I'm writing a web front end for this. In an ideal world when the user clicks 'submit' on the associated form, a page would be displ...
Hi all,
I'm using the CGIHTTPServer to implement a simple cgi server. I'm trying to upload a file by a form with the post method and the multipart/form-data enctype but I have problems when I recover the value of the fields in the cgi script.
When the script catch the form fields, the value of the file is a MiniFieldStorage with two f...
I have a page named Main.cgi where in I have a horizontal menu bar with UserList logs
and so on like the Menu above Questions Tags Users etc. Whenever I click the Userlist
I get navigated to another page where I have a grid. In this page also I want
that Menu bar which was in Main.cgi, and so on. It should get repeated to every
page.
...
Here is the table in which I am retrieving the data from an SQLite database.
Its having lots of records, so near that ADD button I need something like
|< < > >| which would do the paging function whenever I click.
Also, besides the table each header (e.g. UserName UserId) I need a sorting
button. Something like a ^ button. Please do h...
My Perl app reveals the filename 'processing.cgi' in the addressbar when running on my hosting account, but on localhost it seems to work fine, that is, it doesn't reveal the filename 'processing.cgi'.
Here's .htaccess thats exactly the same on both locations:
AddHandler cgi-script .cgi
Options +ExecCGI
IndexIgnore *
DirectoryIndex ...
Hello all,
I try to execute a simple perl script on my server and I get an internal 500 server and when I check the error logs it shows:
Premature end of script headers: test.pl
Here is the perl script:
#!/usr/bin/perl -w
print "Content-type: text/plain\n\n";
print "testing...\n";
My cgi-bin folder has permissions of 0755. The scri...
Hi, I have created Cookie in CGI page and tried to clear in PHP page.
CGI source:
Set-Cookie: cookieName="value"; path=/;\n
PHP source:
setcookie ("cookieName", "", time() - 3600);
unset($_COOKIE['cookieName']);
Have an idea? Please help.
Thanks
...
I have a CGI page with a table which is populated by fetching the data from database, in a word its like a DATAGRID.
And just at the bottom right end of tha Grid I need a link like "First << 1 2 >> Last"
or like" |< < > >| "on clicking which I can navigate to and fro the records. And I am intend to have "10" records per page.
While sur...
I currently have an internal website that is running Apache. It is serving some cgi script webpages (perl code). Recently in Firefox and Chrome it is starting to show plain text version of the HTML code. In Internet Explorer it renders the cgi files as HTML, but in Chrome and Firefox it is rendered as plain text.
In the perl code I h...
I have a CGI script that takes a few minutes to run. I want to keep it very simple. Currently, it prints some information about the process and then starts running it. When complete, it shows the result of the job.
It works perfectly when I load it in telnet. However, Firefox doesn't show the header information until after the proce...
I have a Perl script which is scripted to print "Hello!" on a web browser. I am using apache as my localhost server. The OS I am using is the Red Hat 5.
The problem is that when I type the address http://localhost/example.pl or http://127.0.0.1/example.pl, it shows me exactly the entire script codes but not the "Hello!" word that should...
I've searched for this for a while but have not been able to find a solution. How can I configure Apache to run any ELF executable in the web root as a CGI program? For example, if I write and compile a C program and place it as /var/www/something, I want to be able to visit http://localhost/something and have Apache run the program, out...
I have a general question about Perl CGI programs. For a few applications, not using MVCs, developers write CGI programs, may be using CGI.pm or some other way they like and for moving from screen to sceen, a new CGI program is written, (with - CVS TAGS, Perl headers etc etc..).
But what I feel is if there is some stuff (subroutine or b...
Hi,
I have been working on this for 1 hour with no such luck. Any help would be appreciated.
I have a cgi script with which creates these select param values:
print "Please select a dkversion to compare : <br><br>";
print "<select name='dkversion' id='dkversion' size='6' multiple='multiple'>";
foreach my $values ('ASDF123GS v0.01 mod...
Hi all,
Just wondering if someone can help me with the following issue.
I want to redirect my site to a subdomain, whishc simply displays a maintenace page, allowing me to work on the main site.
So I have the following code for my .htaccess:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.d...
I have a DBIC schema, where all the classes use a common base class, and definition class. The base class loads common components, and overrides the update method in order to record changesets in an audit table. The definition class is a static class generated from the database. A typical class header looks something like:
package Schem...
This exact question has been asked before but I am at my wits end! I've spend 4 hours trying to get a SIMPLE Python CGI script to work on Windows XP but I get errors. Please save my sanity!
Python Script register.py
#!c:/Python30/python.exe -u
print "Content-type: text/html"
print "<P>Hello, World!</p>"
Script is located in:
C:\Pr...
Hello!
I have configured my Apache installation to run Ruby CGI scripts. I am now trying to run a simple Ruby CGI script that requires a gem.
When I run this script from the command line, it outputs correctly. But when I call it as an Apache CGI script, it generates an Apache Internal Server Error. The script looks like this:
#!/Ruby/...
I am using CGI.pm version 3.10 for file upload using Perl. I have a Perl script which uploads the file and one of my application keeps track of different revisions of the uploaded document with check-in check-out facility.
Re-creational steps:
I have done a checkout(download a file) using my application (which is web based uses apac...
I have a Python CGI script from which I am trying to call a Java program to perform a task. The Java program uses JExcelAPI. When I run the Python script from the browser, it fails with error messages that it can't find the class definitions for the classes from JExcelAPI. I suppose this happens because the Python CGI script is run under...