★ wanayoo — archive 1999 http://www.getscript.com/variable.cgiNouvelle recherche | Portail wanayoo

Environmental Variables for getscript.com

nslookup crawl2.alexa.com
$ENV{'REMOTE_HOST'} crawl2.alexa.com
$ENV{'REMOTE_ADDR'} 206.132.186.140
$ENV{'HTTP_REFERER'}
$ENV{'QUERY_STRING'}
$ENV{'REMOTE_INDENT'}
$ENV{'REMOTE_USER'}
$ENV{'SCRIPT_FILENAME'} /usr/local/etc/httpd/sites/getscript.com/htdocs/variable.cgi
$ENV{'SCRIPT_NAME'} /variable.cgi
$ENV{'SERVER_NAME'} getscript.com
$ENV{'SERVER_ADMIN'} webmaster@getscript.com
$ENV{'SERVER_PORT'} 80
$ENV{'SERVER_PROTOCOL'} HTTP/1.0
$ENV{'SERVER_SOFTWARE'} Apache/1.3.12 (Unix)
$ENV{'GATEWAY_INTERFACE'} CGI/1.1
$ENV{'HTTP_REQUEST_METHOD'}
$ENV{'PATH'} /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
$ENV{'PATH_INFO'}
$ENV{'PATH_TRANSLATED'}
$ENV{'AUTH_TYPE'}

You Are Here .... /usr/local/etc/httpd/sites/getscript.com/htdocs

What does this mean? If you look at the remote side of your FTP program you may not see what you're seeing above. This is because many virtual servers do not allow to view access to root directories. When referencing the physical path within a script you need the full path and not just what you're seeing on FTP program.

Click Here for the Source Code

Return To Wherever You Came From

Copyright © 2000 DBasics Software Company, All Rights Reserved