• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

READMEH A D02-Dec-20031.2 KiB2725

wwwtest.cgiH A D04-Dec-20031.5 KiB7055

README

1This is the readme file for the example scripts.
2
3wwwtest.cgi
4-----------
5Functional as a cgi-script or in a mod_perl setup.
6To install (on a machine with Authen::Captcha installed):
7- copy it to your cgi-bin
8- modify permissions so that it is executable:
9	chmod a+rx wwwtest.cgi
10- edit the script, setting the variables at it's top to
11  appropriate values:
12	$output_dir : should be set to a directory that is within your
13	              DocumentRoot. This directory must be writable by
14	              the web server user, eg:
15	              chgrp apache /var/www/html/captcha
16	              chmod g+rwx /var/www/html/captcha
17	$www_output_dir : should be set to where the $output_dir maps
18	                  to the outside world. In the above example,
19	                  if /var/www/html is the DocumentRoot,
20	                  $www_output_dir should be set to '/captcha'
21	$db_dir : should be set to a directory that is NOT accessable
22	          from the web, and is writable by the web server user.
23	$num_of_characters : controls how many characters will be displayed
24	                     in the resulting Captcha.
25- Pull up the script in a browser, and test it. If it doesn't work,
26  check your web server log files.
27