Example ASP Scripts | 2024-11-15 |
Configuration parameters that make Apache::ASP tick. |
Messy script showing much of the $Response object's functionality, including cookies and buffering. |
|
Uses $Application for incrementing a counter. |
File dynamically included in the dynamic_includes.htm example. |
|
$Response->BinaryWrite() demo for an asp script serving a gif. |
Shows much of the $Server object's functionality. |
|
Shows compatibility with the CGI.pm library. |
$Response->ServerVariables() are the equivalent of %ENV in ASP. |
|
Simple asp syntax shown by wrapping a for loop around html and inserting a scalar value. |
Shows use of the $Session object, and also demos one implementation of cookieless sessions. |
|
Shows an included file called as a subroutine. |
Demonstrates automatic cookieless session support with the SessionQueryParse* settings. |
|
Shows a custom error message using the $Response->ErrorDocument() API extension. |
Handy source code viewer used to let you easily view the source of the other asp scripts. |
|
File upload data can be read from the $Request->Form(), and is implemented via CGI.pm. |
Demonstrates asp debugging with Debug 2 by creating a perl syntax error . |
|
Footer include for most of the scripts listed. |
Another include used to demo dynamic_includes.htm. |
|
Shows simple use of $Request->Form() and how to get raw input data from $Request->BinaryRead(). |
Source gif for the binary_write.htm example. |
|
Shows use of FormFill feature, which auto fills HTML forms from $Request->Form() data. One must install HTML::FillInForm to use this feature. |
$Server->Transfer() use in action, for speedy redirect type behavior. |
|
The global.asa is the nervous system of an ASP application and is where you define your event handlers. |
XMLSubsMatch XML Extensions demonstrated, which all custom tags to be created by the developer. |
|
Shows how the global.asa can be used to track users in an application. |
XMLSubsStrict setting causes XMLSubs to accept only string literals for arguments, conforming to XML standard more strictly, and controlling XMLSubs execution to compile time arguments. |
|
Header include for most of the scripts listed here. |
XSLT transformation of XML script, using XML::XSLT, and a DBM based cache with the XSLTCache setting. Also possible for the XSLTParser setting is XML::Sablotron for faster XSLT rendering. |
|
Shows how you can decompose a script into common included files. |
||
Demonstrates use of the API extension $Server->RegisterCleanup(). Execute code after a response completes in a fail safe way with this routine. |