The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Apache::RandomImage - Lightweight module to randomly display images from a directory.

SYNOPSIS

You can use this in your Apache *.conf or .htaccess files to activate this module.

<LocationMatch "^/(.+)/images/random-image"> SetHandler perl-script PerlSetVar Suffixes "gif png jpg" PerlHandler Apache::RandomImage </LocationMatch>

<Location "/images/give-random"> SetHandler perl-script PerlSetVar Suffixes "gif png jpg tif jpeg" PerlHandler Apache::RandomImage </Location>

DESCRIPTION

Apache::RandomImage will randomly select an image from the dirname of the requested location. You need to specify a white-space separated list of Suffixes with PerlSetVar, otherwise the request will be declined.

AUTHORS

Michael Kröll <michael.kroell@uibk.ac.at>

SEE ALSO

perl(1), Apache(3), mod_perl(3), Apache::RandomLocation(3)

COPYRIGHT

Copyright 2003, Michael Kröll

This package is free software and is provided "as is" without express or implied warranty. It may be used, redistributed and/or modified under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 76:

Non-ASCII character seen before =encoding in 'Kröll'. Assuming CP1252