|
|
CGI Environmental VariablesOne of the methods that the web server uses to pass information to a cgi script is through environmental variables. These are created and assigned appropriate values within the environment that the server spawns for the cgi script. They can be accessed as any other environmental variable, like with getenv() (in C) or %ENV{'VARIABLE_NAME'} (in Perl). Many of them, contain important information, that most cgi programs need to take into account. This list, highlights some of the most commonly used ones, along with a brief description and notes on possible uses for them. This list is by no means a complete reference; many servers pass their own extra variables, or having different names for some, so better check with your server's documentation. The purpose of this list is only to suggest some common good uses for some of the server-passed information.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Don Park | Posted at 2:17pm on Thursday, March 27th, 2008 |
HTTP_REFERRER has four Rs | |
Richard | Posted at 10:48pm on Monday, April 14th, 2008 |
Not on my Apache server it doesn't. | |
Aaron | Posted at 10:25am on Wednesday, June 25th, 2008 |
Not on my IIS server either. | |
Anon | Posted at 12:30pm on Friday, July 11th, 2008 |
I read somewhere about how referrer was misspelled in the initial creation of the internet and since then programmers have adapted code to accept both spellings. | |
Anon | Posted at 10:43am on Monday, August 18th, 2008 |
Just remember it's double Rs in JavaScript (document.referrer), and it can't be uppercase. :) | |
Anonymous | Posted at 11:54am on Thursday, October 9th, 2008 |
Javascript is client-side, so this whole document has no bearing | |
Anonymous | Posted at 2:10pm on Sunday, November 16th, 2008 |
when spelling nazi attack.... | |
Elvis | Posted at 11:29pm on Friday, March 20th, 2009 |
Lucky to find you, keep on the good workk guys! Best of luck.i | |
vnKIM | Posted at 3:19pm on Monday, February 15th, 2010 |
I do not opine that every single student in whole world has got a passion of essay papers performing! Nevertheless, persons that do not like writing have to use help of distinguished classification essay writing service and be happy with a result. | |
Françoise | Posted at 2:00am on Tuesday, January 4th, 2011 |
Je recherche le code pour que les données du formulaire se retrouve sur une liste xls par exemple pour une inscription en ligne concernant des participants à des cours | |
Anonymous | Posted at 9:44am on Sunday, January 30th, 2011 |
wen speling nahzzi ataq!!! | |
David Fisher | Posted at 6:00pm on Sunday, April 17th, 2011 |
Actually, with respect to accessing variables, spelling is very important - if you misspell a variable name, you either cause an error or wind up reading a variable that is named the same as the misspelling. This is not a case of spelling nazi's - spelling is critical. | |
Cody | Posted at 9:37am on Tuesday, July 26th, 2011 |
You'd be right David, except one minor little thing you forgot to mention: Anon is right. It was a mistake. So the variable name IS HTTP_REFERER. Might I suggest you read the RFC? | |
safsafa | Posted at 12:13pm on Wednesday, September 7th, 2011 |
sfasfasaa | |
TranILA | Posted at 4:05am on Thursday, September 22nd, 2011 |
Houses and cars are expensive and not everybody can buy it. However, loans was invented to help people in such kind of situations. | |
MckenzieFran | Posted at 5:02am on Wednesday, September 28th, 2011 |
Make your life time easier take the home loans and all you want. | |
Madeleine27Guerrero | Posted at 6:10am on Saturday, October 8th, 2011 |
I propose not to hold off until you get big sum of money to buy different goods! You should just get the loan or just small business loan and feel yourself comfortable | |
LetaLevine | Posted at 11:33pm on Monday, October 10th, 2011 |
I opine that to get the personal loans from banks you ought to present a good motivation. But, one time I've got a car loan, just because I wanted to buy a house. | |
LUCIAPeck | Posted at 9:54am on Tuesday, October 11th, 2011 |
I would like to propose not to hold off until you get enough cash to buy different goods! You should get the business loans or commercial loan and feel fine | |
silvioprog | Posted at 5:50pm on Saturday, December 31st, 2011 |
Nice. | |
pletchertye | Posted at 2:33pm on Thursday, February 9th, 2012 |
Number of brands with headphones have got achieved reputation and | |
prakash kumar | Posted at 2:26am on Saturday, February 25th, 2012 |
i don't know about cgi?................ | |
error | Posted at 9:50am on Thursday, March 22nd, 2012 |
Skynet uses cgi variables. | |
salernoclaude | Posted at 11:37pm on Saturday, May 19th, 2012 |
Great post, and great website. | |
RagegofeRox | Posted at 2:23am on Wednesday, July 11th, 2012 |
n¤¢¤¿¤·¤Ï¤¿¤Þ¤Ëº£Íâ¤ØÐФ¯¤³¤È¤¬¤¢¤ë¤Î¤Ç¤¹¤%A | |
Glypeplearm | Posted at 2:01am on Friday, August 10th, 2012 |
Ô¤ϡ¢¤Û¤È¤ó¤É¤Î²¿·Ö¤Ï¡¢Ë½¤¿¤Á¤Î¸ÐÇé% | |
Shams | Posted at 8:16am on Monday, August 20th, 2012 |
Works like a charm thanks!The plan from the other URL mntinoeed also lack some common sense. Why would I use an iterative folding algorithm (folding at home? :P) to divide a piece of paper in 5ths when I can just insert the CD and fold the paper around. Oh well, now I'll just print them :-) | |
npydjbrv | Posted at 1:43am on Tuesday, August 21st, 2012 |
GFsqTN uznmujgsvfii | |
mkbgxbchzsa | Posted at 2:03pm on Thursday, August 23rd, 2012 |
qT9itD qhiuuovbgjug | |
dony | Posted at 8:28am on Monday, October 1st, 2012 |
good post | |
Bawnemamb | Posted at 5:22am on Friday, October 5th, 2012 |
彼は開始、第1のニードルベアリングスラリーポイント、遅い第二針遅いピアス素早く脊椎の下、ゆっくりと針にDazhui、第三針ピアス17、ねじれダウン刺し、針を上げるには、シェンxiは痛みを食べて、ゆっくりと呼びかけするところでは、彼は、彼女を慰め、"連錬、従順!"とし、山の洞窟の秩序、トリプルバーナー遊、Shenshu、ガス、海優にミリメートルの針を取る。 | |
Twepleempam | Posted at 12:32am on Thursday, October 25th, 2012 |
A further great searching for Christian Louboutin Religious Louboutin running footwear over the net is t | |
XRumerTest | Posted at 11:14pm on Wednesday, November 7th, 2012 |
GdoNay christian lo | |
Comments to date: 33.
The Official CGI.pm Programming Guide is the definitive manual and guidebook for writing CGI programs
with perl and the CGI library. While the manual distributed with the library as part of perl's documentation is well
written and covers almost anything you'd need to know about using CGI.pm, this book is a useful companion for anyone
making CGI scripts with perl.
CGI Programming is an introductry book for CGI programming, perhaps not the best book I've read.
It covers most topics about the CGI protocol and how to write server side programs to work with it.
Nevertheless, most if not all of the information in this book (as with most books that discuss CGI programming)
can be found in tutorials and references on the web, but if you feel like buying a book anyway, you may want to
consider this one.
Webmaster in a nutshell is a catch-all reference book for webmaster and programmers. It does
not have anuything that you can't find online, but if you're liek me you might want to have all the
stuff you refer to frequently nicely laid out in a well-organized book lying on your desk. If you're looking
for something like that then you'll be happy with this book.
The Perl Cookbook is full of quick solutions to everyday programming problems in perl with explanations
and tips easy to understand even for beginners, but also frequently useful even to more experienced programmers.
The code is clear and straightforward and the topics covered as well-thought and correspond to real world examples,
so frequently you can literally copy code snippets from the book and fit them in your program. It is a nice complement
for the Camel Book on your bookshelf.
| Copyright © Perlfect Solutions 1998-2008 - Privacy Policy |