| |
| |||||||||||||
CGI scriptsCGI 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 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. | ||||||||||||||
| ||||||||||||||