
Apache2::ASP::Server - Utility object for Apache2::ASP programming

The global $Server object is used in ASP programming for utility tasks such as string sanitation,
finding files,
sending email and registering subroutines to be performed asynchronously.


Returns a URL-Encoded version of the string provided.
For example,
"test@test.com" becomes "test%40test.com" with URLEncode().
Takes a URL-Encoded string and returns the URL-Decoded version.
For example,
"test%40test.com" becomes "test@test.com" with URLDecode().
Returns an HTML-Encoded version of the string provided.
For example,
"<b>Hello</b>" becomes "<b>Hello</b>" with HTMLEncode().
Returns an HTML-Decoded version of the string provided.
For example,
"<b>Hello</b>" becomes "<b>Hello</b>" with HTMLDecode().
Given a relative path MapPath() returns the absolute path to the file on disk.
For example,
'/index.asp' might return '/usr/local/dstack/www/index.asp'.
A wrapper around the sendmail() function from Mail::Sendmail.
A wrapper around the function cleanup_register( $sub ) function provided by mod_perl2.
Pass in a subref that should be executed after the current request has completed.
For example:
<%
$Server->RegisterCleanup(sub { do_something_later() });
# Do more stuff here:
$Response->Write("Hello!");
%>

It's possible that some bugs have found their way into this release.
Use RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=Apache2-ASP to submit bug reports.

Please visit the Apache2::ASP homepage at http://www.devstack.com/ to see examples of Apache2::ASP in action.

John Drago mailto:jdrago_999@yahoo.com

Copyright 2007 John Drago, All rights reserved.
This software is free software. It may be used and distributed under the same terms as Perl itself.