Manual
Our Services
Getting Started
Web Development
Control Center
Support
Search
Virtual Tour
FAQ
Manual
Contact our Staff
Reseller Info
About Us
Hostex

CGI scripts

CGI programs run on a web server but can be invoked through a web page by visitors to your site. They can be used to perform a wide variety of tasks such as processing forms, sending emails, building HTML pages 'on-the-fly' or counting site visitors. CGI programs can be written in a variety of programming languages including C, C++, Perl, Php and Python. The most widely used CGI programming languages on the Internet are Perl, and Php.

You can find about those two programming languages by visiting http://www.php.net and http://www.perl.com .

If you are going to use Perl as the programming language, here are for your server some useful things you must know: Absolute path to Perl: /usr/bin/perl
Absolute path to the root directory of your server: /www/yourserver.name/
Absolute path to WWW pages directory of your server: /www/yourserver.name/www
Absolute path to cgi-bin directory: /www/yourserver.name/cgi-bin/
Path to mail: /bin/mail
Path to sendmail: /usr/sbin/sendmail

CGI scripts permissions: 755 CGI scripts could have any extensions. http://yourserver.com/cgi-bin directory is equal to /cgi-bin directory on your server.

If you try to run your CGI program through your web browser and get a page saying "Server Error" or "Internal Server Error" it is likely that you have an error in your CGI script or that you have not set the permissions correctly for your CGI-program.

If you need to know more about CGI, see the complete CGI specification at NCSA. W3C also maintains a CGI page with links to any documents you might need.

You can find many server-ready scripts on the Internet. Check http://www.scriptarchive.com or http://freshmeat.net.

<<< Previous       Next >>>

Top

Home | Our Services | Getting Started | Web Development | Control Center | Support | Reseller Info | About Us