|
|||||
Perl Studio for Windows 95/98/2000/NTPerl Studio psBanner
These scripts are included with the Perl Studio member subscription. Perl Studio random banner usage: random image banner SSI example
random image banner inline image example inline hard coded image example
Installing Perl Studio psBanner scripts , DBI::SQL version Unzip the banner.zip archive file on your local hard drive. Change the first line of the scripts to point to the correct path for perl version 5 or greater on your server. The default perl path in the scripts is #!/usr/local/bin/perl
(note: The script files params.cgi and banner_lib.cgi do not need a perl path tag.) Create a 'banners' directory under your cgi-bin directory. Create a 'template' directory under your public_html directory. Upload the banner_print.html into the template directory. This html file is used to print database records by the admin script. Create a 'database/images directory under your public_html directory. Next, make sure the files and directories have the correct permissions. Script file permissions should be 755. Make sure the database/images directory has a directory permission of 777. The admin script will place the uploaded images in this directory. User Modifications The following lines from the params.cgi file define the location of important files and database parameters. These lines must be modified before running the scripts: Required Modifications that need to be set before you use the banner scripts Access to your DBI::SQL Database will require that you supply your userid and password Access to your DBI::SQL Database will require that you supply the name of your database, The name of the database driver your using. It can be mysql or any DBI:DBD driver The URL to the database server, usually localhost, if the database server is on the same machine. First run the banner_create.cgi script to create your new banners database table.
|