Ward Vandewege > WeSQL-0.53 > Apache::WeSQL::AppHandler

Download:
WeSQL-0.53.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.53   Source  

NAME ^

Apache::WeSQL::AppHandler - Perl ApacheHandler for a WeSQL application

SYNOPSIS ^

    PerlSetVar WeSQLConfig /var/www/WeSQL/somesite/conf/WeSQL.pl
    PerlModule Apache::WeSQL::AppHandler

    <FilesMatch "*.wsql">
      SetHandler perl-script
      PerlHandler Apache::WeSQL::AppHandler
    </FilesMatch>
    DocumentRoot "/var/www/WeSQL/somesite/public_html"
                DirectoryIndex index.wsql

DESCRIPTION ^

This module is an ApacheHandler for a WeSQL application. It's sole purpose is to keep the configuration unique to the application in a separate namespace. This includes the variables defined in the configuration file (as set by WeSQLConfig), and most importantly the database connection for this application.

Every WeSQL application running on the webserver will need it's own version of this module, with a different name. This is necessary to avoid namespace-problems (the database-handler is always called $dbh in WeSQL!).

For more information about running several WeSQL sites on 1 Apache server, see the 'RUNNING MULTIPLE WEBSITES' section in the Apache::WeSQL man page.

Apart from a sub to read the configuration file, there is no intelligence in this module. All calls are handled by Apache::WeSQL and its helper modules.

This module is part of the WeSQL package, version 0.53

(c) 2000-2002 by Ward Vandewege. This program is free software; you can redistribute it and/or modify it under the terms of the GPL.

EXPORT

Nothing.

AUTHOR ^

Ward Vandewege, <ward@pong.be>

SEE ALSO ^

Apache::WeSQL, Apache::WeSQL::SqlFunc, Apache::WeSQL::Journalled, Apache::WeSQL::Display, Apache::WeSQL::Auth.