Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I use taint mode in my CGI/Perl script?

CGI/Perl Taint Mode FAQ
Notice that Perl 4 does not support the -T flag. Instead, version 4 of Perl distributions typically come with a separate executable altogether, "taintPerl". Windows NT and other non-UNIX Web servers may have trouble recognizing the first magical line of a Perl script. Executing the first line of a script with the command parameters in there is a UNIXism. Read the next section for issues involved in activating taint mode on WinNT, Win95/98, or Mac.
Related Questions

Where can I find a sample CGI/Perl script?

FAQ - JSP Hosting, Servlet Hosting, J2EE Hosting
If you have a tomcat installation and you whish to use a servlet to replace noexist documents, and you want to do it using Apache and PHP, then
Related Questions

How do I associate a CGI script with Perl?

Software to create Common Gateway Interface (CGI) for online...
In 'My Computer' or 'Windows Explorer', select View | Options | File Types | New Type. Specify the description as CGI script and the filename extension as .pl or .cgi . Click New | Open and specify perl.exe as the command to execute the action.
Related Questions

I want to use a CGI or PERL script, what is the path to the appropriate compiler?

FAQ
To run CGI or PERL scripts from your domain name you need to modify the first line of the script to point at the PERL / CGI compiler, the absolute path is "c:\www\perl\perl.exe" (without the quotes of course). If you do not make this change to your script you will get an error, specifically the "500 Internal Server Error".
Related Questions

I read that Associate Engine is a cgi-bin perl script. What is a cgi-bin perl script?

Associate Engine Script : New Users FAQ
A cgi-bin perl script is not a Windows program such as Microsoft Word or Excel that you run on your desktop computer using a mouse. A cgi-bin perl script is a program that you upload to your webserver. Perl is a programming language. A typical perl script has a filename that ends with ".pl" and is uploaded by you to the "cgi-bin" directory on your webserver.
Related Questions

What are the differences in using Perl as a CGI script or through mod_perl?

hp apache-based web server faqs
It has additional functionality provided by mod_perl handlers and <Perl>...</Perl> sections.
Related Questions

Can I use any CGI script?

Web Hosting Singapore - Frequently Asked Question
We allow users to write and run their own cgi-scripts, but we reserve the right to disallow scripts that have harmful server side effects (ie. a persistant script).
Related Questions

Can Expect be run as a CGI script?

Expect FAQ (Frequently Asked Questions)
Many Expect scripts can be run directly with one change - the following line should be inserted before any other output: puts "Content-type: text/html\n" Next, make sure you invoke external programs using full paths. For example, instead of "spawn telnet", use "spawn /usr/ucb/telnet" (or whatever). Remember that the PATH and other environment variables are going to be different than what you are used to.
Related Questions

Question: Why my CGI-BIN or Perl Script doesn,t run ?

A Reliable Hosting Provider for quality and 24 hours support...
Answer : Visit the following link to view the solution : http://httpd.apache.org/docs/misc/FAQ-F.html#premature-script-headers
Related Questions

What is CGI / Perl?

Laws Web Hosting - Hosting, PHP, MySQL, Perl
CGI stands for Common Gateway Interface which is the standard method by which data is passed between web servers and web applications. Perl is the programming language most commonly used when writing CGI web applications.
Related Questions

What is perl/CGI?

Frequently Asked Questions @ Tricup.com
Perl is a high-level programming language written by Larry Wall and added to by thousands of others. The way it handles files, processes, and data is extremely well suited for many applications and is used extensively on the web as the highest rated programming language suited for website enhancement and automation, as well as for many database and integration applications. For more information, check out this online book to find out anything you want to know about CGI and Perl: http://www.
Related Questions

How do I fix problems with require or use statements in taint mode?

CGI/Perl Taint Mode FAQ
The Perl require and use statements also change slightly when taint mode is turned on. Basically, the path to load libraries/modules no longer contains "." (the current directory) from its path. So if you load any libaries or modules relative to the current working directory without explicitly specifying the path, your script will break under taint mode.
Related Questions

How can I use the Forms to File CGI script?

Webadmin Documentation
This example above will submit information entered in the 'test' textbox into a file called 'myfilename'. This file will be stored in the root directory with a .frm extension, so that it's more difficult to delete this file by accident. To protect directories, you do not need to create .htaccess and .htpasswd files anymore. Instead, you can use the Webadmin tool and select option 6.
Related Questions

How do I use perl-mode with Emacs?

GNU Emacs FAQ for Windows
Users have also recommended an alternate mode named cperl-mode. This is installed with Emacs 21.3 - if you are running an older version of Emacs you can find it online at: http://www.emacswiki.org/cgi-bin/wiki/CPerlMode.
Related Questions

I get a Server Error when I run my cgi script. How can I fix that?

CheaperWebHost.com - Frequently Asked Questions (FAQs)
First, make sure that the permissions on the file are set properly for execute permission. By default, the permissions are 644 (rw-r--r--) and do not allow execution. You need to change the permissions, or the mode, on your cgi script to 755 (rwxr-xr-x). Some FTP programs allow you to change file permissions, if yours doesn't, then you can use the File Manager in your Control Panel to change the permissions.
Related Questions

Untitled Document
CGI (Common Gateway Interface) scripts are used to supplement basic HTML pages by making your Web site more interactive and functional. You can program many useful features in CGI scripts, such as hit counters, guest books, order forms and message boards. CGI is an alternative to Microsoft Active Server Pages (ASP). CGI programs are programs that actually execute on the web server, not on the client's computer.
Related Questions

DPW Enterprises Web Design and Hosting Services FAQ's - Manc...
Common Gateway Interface (CGI) is a standard method of transmitting information between an application and a Web server. CGI scripts are used to supplement basic HTML pages by making your Web site more interactive and functional. You can program many useful features in CGI scripts, such as hit counters, guest books, order forms and message boards. CGI is an alternative to Microsoft Active Server Pages (ASP).
Related Questions

Frequently Asked Questions: WestLake Training
CGI (Common Gateway Interface) scripts are programs that reside on your Web server and are primarily used to process information entered into forms. To explain further: when you have a form on your Web site (e.g., a product order form or a class registration form), there are two components to it: The HTML page containing the code for the form. When the user visits this page, the form is displayed in the browser so that the user can fill it out.
Related Questions

BonusPages FAQ's. Web Page Hosting less than $3.00/Month! Fr...
A CGI script is a special kind of text file that the server can run to perform various tasks, such as displaying a hit counter, or mailing a form to you which has been filled out by a customer. We offer 3 basic CGI scripts already installed and ready to run. Contact us for specific instructions on how to use these on your pages.
Related Questions

How do I call my CGI script?

CGI Frequently Asked Questions
In your HTML documents, reference your cgi script with the following path: http://www.yourdomain.com/cgi-bin/script.
Related Questions

What is taint mode? Why do I need it?

CGI/Perl Taint Mode FAQ
Freeware CGI Scripts are available for download all over the Web. But how many of them are really secure? When you download a script do you check all the logic to make sure it is secure? Do you read through each line of code and anticipate all the ramifications? Most of the time the answer is "no". After all, the whole point of downloading software is to get it and run it for free WITHOUT having to do a lot of work. I'm writing this to tell you that there isn't any free lunch out there.
Related Questions

Once I activate taint mode is that it?

CGI/Perl Taint Mode FAQ
You should test your script thoroughly to see if turning on taint mode stops anything from occuring. Usually the majority of your script will work fine. In fact if you are lucky, the whole program may work without any changes at all! Run-time checking means that taint mode Perl is constantly and vigilantly checking to see if the script is going to do anything unsafe with user input while the program runs. It does not stop checking after the script first compiles (compile-time checking).
Related Questions

How do I fix system() calls in taint mode?

CGI/Perl Taint Mode FAQ
When you make a system call to an external program or use its sister command, exec, taint mode also stops this from happening if the PATH has not been adjusted. Again, since a string is being passed to the system call, Perl generally has trouble figuring out whether a relative or absolute path to a command has been passed. Being in "paranoid" mode, Perl stops the command from executing.
Related Questions

How can I use custom PHP and CGI (Perl) scripts?

PHP/Perl/Python Settings & Errors - FAQ - ProperHost.net
To use a custom script, just upload the .php, .php5, .cgi or .pl file(s) to your account. The Perl scripts do not require a special /cgi-bin/ directory as some server configurations require. You can place your Perl and PHP scripts in any directory you wish. Note: Currently, support for both PHP 4.4 and PHP 5 is available on our servers simultaneously. If you want to use PHP version 5, you need to create the PHP files using the extension ".php5".
Related Questions

How do I use ASP/PHP/SSI/Perl/CGI scripts?

FAQ - Liquenox Hosting
Each type of script has its own requirements (note that they must all be uploaded using the ASCII FTP transfer mode): HTML scripts can be run from anywhere in public_html/ or private_html/. HTML scripts require a .html or .htm file extension. PHP scripts can be run from anywhere in public_html/ or private_html/, although they should not be inside a /cgi-bin/ folder. PHP scripts require a .php file extension. There are two PHP script execution modes - safe_mode enabled or safe_mode disabled.
Related Questions

Can I use CGI and Perl to read and write files?

Web Hosting Singapore - Frequently Asked Question
Yes, if your account is on a UNIX server. (Note: in order to have your CGI script run automatically outside of the cgi-bin directory, it must have been named and saved with a ".cgi" extension.) We allow their use, but support for proprietary software needs to come from the author of the software.
Related Questions

Can I use a "cgi-bin" on my account for my Perl scripts?

Untitled Document
Yes. In fact, a cig-bin is already configured for you in the "/var/www/cgi-bin/" (mainsitecgi) directory. This is the only location where cig scripts will execute.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact