cgi-bin

configuring apache with webdot

Hi, I would like to automatically generate image from *.gv files in a browser. I am using webdot CGI script to do this. This works with URLs like these: http://localhost/cgi-bin/webdot/path_to_file/file.gv.dot.png location of the CGI script: http://localhost/cgi-bin/webdot/ file to render: /path_to_file/file.gv rende...

Why cgi scripts have to stay in cgi-bin folder ?

Why cgi scripts have to stay in cgi-bin folder ? What is the difference from insert python script ( or php script or any other script ) in public_html folder and in cgi-bin folder ? I don't understand :-\ ...

Python Apache local/internal server error?

I am creating HTML form and using Python to code it. I have installed Apache version2.2 and Python version 2.6. Here is the code: #!C:\Python26\Python.exe -u #import cgi modules import cgi #create instances of field storage form = cgi.FieldStorage() #get data from the fields first_name = form.getvalue('first_name') last_name = form....

How to know if a cgi script is executing ?

I have added a cgi script in cgi-bin folder. Now... How can I know if this cgi script is executing ? ...

Running a Python Script on a server (Does it have to be in /cgi-bin/)?

Right now I have a script thats http://www.example.com/cgi-bin/foo?var1=A&var2=B Is there a way that I can have it run outside of the cgi-bin directory? Like could I have http://www.example.com/foo/?var1=A&var2=B Thanks! ...

Return an image to the browser in python, cgi-bin

I'm trying to set up a python script in cgi-bin that simply returns a header with content-type: image/png and returns the image. I've tried opening the image and returning it with print f.read() but that isn't working. EDIT: the code I'm trying to use is: print "Content-type: image/png\n\n" with open("/home/user/tmp/image.png", "r") a...

Running CGI outside of cgi-bin. Good idea?

I'm considering moving from PHP to Python (for personal projects), and I really don't like seeing /cgi-bin/ in my URL. I got the Python to execute outside of cgi-bin, but I just wanted to make sure there were no possible security issues that could pop up, and that there were no major impacts on the speed. So are there any major issues ...

Using cProfile or line_profile on a Python script in /cgi-bin/ ?

Is there a way to run cProfile or line_profile on a script on a server? ie: how could I get the results for one of the two methods on http://www.Example.com/cgi-bin/myScript.py Thanks! ...

TFMail : How to keep original name of attachments.

TFMail was a popular CGI Form Mail script at one time. Unfortunately, my client insists on continuing to use it. I hope that there are people who still use it and are experts in using it. The best documentation I can find is someone's home made reference sheet. In my HTML form, I have an input named attachment1 : <input type="file"...

cgi-bin question

I have access to a shared web host. The website installed there uses exec(). About 4 months ago the function was enabled, but now they have put it on the disable_functions list. They put exec, passthru and shell_exec on that list but they forgot to put system:) This makes me think that the server admin is not very aware on what he's doi...

Why are multiple records selected from a database not displayed in my HTML?

After fetching the records from an SQL server database into a HTML form with select for update via a CGI program, the multiple selected items are not being displayed as selected. I am using Perl. use CGI; use CGI qw/:standard/; use CGI::Carp qw(warningsToBrowser fatalsToBrowser); my $q = new CGI; my $query = new CGI; my @list =ne...

How to execute a shell script in cgi-bin?

OK first of all, I am a PHP programmer but I have never done anything with CGI and don't know what it is. I know it stands for Common Gateway Interface, but I do not know what it does or what its for. I was just told that I can upload a shell script to my cgi-bin folder and execute it. I made a shell script myscript.sh and uploaded it ...

Security precautions for running python in cgi-bin.

I've been writing python scripts that run locally. I would now like to offer a service online using one of these python scripts and through the webhosting I have I can run python in the cgi-bin. The python script takes input from an html form filled in by the user, has the credentials and connects with a local database, calculates stuff...

Redirect cgi-bin directory

My Old site had a lot of urls using the cgi-bin directory eg : www.website.com/cgi-bin/etc?123 Now the site is now on a new server running wordpress, and I want to redirect this to : www.website.com/etc/123 The problem is I am getting 404 errors that are not being processed by wordpress, and even creating a direcotry cgi-bin does the s...