PSP::CGI::Info - provides function interface CGI environment variables.
use PSP::CGI::Info; my $clientIP = clientIP(); my $scriptURI = scriptURI(); my $requestURI = requestURI(); my $documentRoot = documentRoot();
This simple module does nothing but providing a nicer interface for working with the most important CGI environment variables. This module was created as a companion to the Perl Script Pages Engine. See the PSP::Engine manpage for more information.
Returns the client's IP address, if provided by the web server, in dotted decimals format.
use PSP::CGI::Info; my $clientIP = clientIP();
This function is exported automatically.
None.
None.
Returns the complete URI requested by the client, if provided by the web server.
use PSP::CGI::Info; my $scriptURI = scriptURI();
This function is exported automatically.
None.
None.
Returns the local part of the URI the client requested, if provided by the web server.
use PSP::CGI::Info; my $requestURI = requestURI();
This function is exported automatically.
None.
None.
Returns the web server's/web virtual host's document root directory, if provided by the web server.
use PSP::CGI::Info; my $documentRoot = documentRoot();
This function is exported automatically.
None.
None.
Veit Wahlich
E-Mail: cru |at| zodia |dot| de
WWW: http://home.ircnet.de/cru/
v0.7 Wednesday, 18 January 2006
Copyright 2004-2006 Veit Wahlich
This software is distributed as free (libre) software under the terms of the GNU General Public License, version 2 <http://www.gnu.org/copyleft/gpl.html>. The author disclaims responsibility of any damage or harm caused directly or indirectly by usage of this software. Use only at your own risk.