$ENV{'URL'}

T

Todd Anderson

Hello,
$ENV{'SERVER_NAME'} this indentifies a server name
$ENV{'SCRIPT_NAME'} this indentifies a script name
does anyone know what code would be used to indentify the url used to
access a site?
Thanks in advance for your help.
 
W

Walter Roberson

:$ENV{'SERVER_NAME'} this indentifies a server name
:$ENV{'SCRIPT_NAME'} this indentifies a script name
:does anyone know what code would be used to indentify the url used to
:access a site?

The appropriate environment variable is documented in any good CGI
reference work. (e.g., w3c.org). Find the variable name and
wrap it in $ENV{} .
 
T

Tad McClellan

Todd Anderson said:
$ENV{'SERVER_NAME'} this indentifies a server name
$ENV{'SCRIPT_NAME'} this indentifies a script name
does anyone know what code would be used to indentify the url used to
access a site?


$ENV{'rectal discharge'}
 
G

Gregory Toomey

Todd said:
Hello,
$ENV{'SERVER_NAME'} this indentifies a server name
$ENV{'SCRIPT_NAME'} this indentifies a script name
does anyone know what code would be used to indentify the url used to
access a site?
Thanks in advance for your help.

HINT: Your question has nothing to do with Perl
HINT: This group is not about web wevers


But having said that, the following snippet of code will help you print out
your environment variables. Use it inside cgi to see what your web server
is sending.

print "$_=$ENV{$_}" for sort keys(%ENV);


gtoomey
 
W

Web Surfer

Hello,
$ENV{'SERVER_NAME'} this indentifies a server name
$ENV{'SCRIPT_NAME'} this indentifies a script name
does anyone know what code would be used to indentify the url used to
access a site?
Thanks in advance for your help.

First, I believe that a group dedicated to writing CGI scripts, such as
comp.infosystems.www.authoring.cgi , would be a better place for
questions such as this.

But I believe that the variable in question would be

$ENV{'HTTP_REFERER'}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top