Slamdot

  • Home
  • Tour
  • Buzz
  • Blog
  • Help
  • Pricing & Sign-up

Back to: Slamdot Help → Scripts → How do I use CGI scripts?

How do I use CGI scripts?

Posted by Daniel on April 21, 2006

All CGI scripts must be placed in your cgi-bin directory. The cgi-bin folder is located in your public_html directory (e.g. public_html/cgi-bin). If you want to run a CGI script in a subdomain, put the script in the subdomain's cgi-bin directory.

Uploading CGI Scripts

When using FTP, it is very important to upload script files (e.g. .cgi and .pl) in ASCII mode. FTP clients will give you the option of uploading in ASCII, binary, or "auto." If "auto" is selected, then make sure .cgi and .pl are considered ASCII files by your FTP client. Scripts will not execute properly if they are uploaded in binary mode.

Be sure to follow the directions included with the CGI script.

Rating: (None)

  • Email
  • Print
  • Add Comment
How helpful was this article to you?

Related Articles

  • How do I use PHP scripts?

    PHP scripts are fully supported. PHP scripts may be placed and executed in any folder within your public_html directory. Please refer to the...

    (No rating) April 21, 2006 Views: 950

  • What are the program paths for using scripts?

    The following paths are commonly needed by scripts. Path to perl: /usr/bin/perl Path to sendmail: /usr/sbin/sendmail CGI...

    April 21, 2006 Views: 1451

  • How do I setup my database with scripts?

    Most scripts need to know four things about your database: the database name, database username, password, and hostname. Database Name The...

    (No rating) April 22, 2006 Views: 860

Comments so far ↓

  • There are no comments yet...Kick things off by adding a comment →

Got more questions? Got feature requests?

Please contact us and we'll get back to you shortly.

Search this site

Categories

  • Advanced
  • Domain Registration
  • Email
  • Files
  • Getting Started
  • Plan
  • Ruby on Rails
  • Scripts
  • Uploading to Your Site
  • Website

Copyright © 2008 Slamdot, Inc. All rights reserved.

  • Terms of Service
  • Acceptable Use Policy
  • Privacy Policy
  • Contact Us