Saturday, January 18, 2014

The CGI means:

The CGI:
On most world wide web servers, the CGI means has been usualized in the following way. In the usual directory tree that the server considers to be the root, you create a subdirectory entitled cgi-bin. (You can glimpse this directory in the number on the previous page.) The server then understands that any document demanded from the special cgi-bin directory should not easily be read and dispatched, but rather than should be executed. The yield of the executed program is what it really sent to the browser that demanded the page. The executable is usually either a untainted executable, like the yield of a C compiler, or it is a PERL script. PERL is an exceedingly popular dialect for CGI scripting.

Imagine that you kind the following URL into your browser: http://www.howstuffworks.com/cgi-bin/search.pl. The server recognized that search.pl is in the cgi-bin directory, so it executes search.pl (which is a PERL script) and drives the yield from the execution to your browser.
You can compose your own scripts and try out CGI yourself provided that:
You understand a programming language such as C or PERL.
You have access to a world wide web server that manages CGI scripts. If you have paid a world wide web hosting service to host your world wide web location, then possibilities are you have get access to to CGI scripting through your owner. ascertain with the hosting service for minutia. If not, then you can trial by installing a world wide web server on your dwelling appliance and discovering to use it. The second option is a bit more complicated, but you are assured to discover a lot in the method!

No comments:

Post a Comment