Well ... whilst I waited for tracy to write a script. I looked over the suggestions here and, I passed the ServerSide Includes script suggested by viol8ion for the one suggested by Barbie at
....
rand_image.pl
Three things of concern looking/testing the codes here for rand_image.pl:
------------------------------------------------------------
# $DEBUGGING must be set in a BEGIN block in order to have it be set before
# the program is fully compiled.
# This should almost certainly be set to 0 when the program is 'live'
#
BEGIN
{
$DEBUGGING = 1;
}
>The test page is working. I should have reset that
= 1; to = 0; ?????
------------------------------------------------------------
my $basedir = '
my @files = qw(100.jpg
100e.jpg
100p.jpg
100r.jpg
1000.jpg
1000z.jpg
1000e.jpg
1000p.jpg
1000r.jpg
1000s.jpg);
>The "my @files" Can't this be a wild card * ? I have over 200 images. Which is why I thought a txt file with the .pl file in the cgi-bin would make updating alot easier. I wouldn't have to chmod that txt file would I?
------------------------------------------------------------
my $uselog = 1; # 1 = YES; 0 = NO
my $logfile = '/path/to/piclog';
# End configuration
>$uselog = 0; I really don't need to know how many times each image was viewed setting this to zero won't be a bad thing would it? I don't know how to modify this code to change anything to do with the log files. As yauncin suggested to rotate 'em. I thought:
my $uselog = 0;
Delete this line -> my $logfile = '/path/to/piclog';
# End configuration
I couldn't find info in the zip about what the chmod command was on the .pl, seeking answers on the internet and found 755 seemed to be the one used most often.
I'm not too far OFF am I?
appreciating all the help here ...
mxw ~Eeegads~