Dumb newbie question
cabney at cyberpass.net
Sun Sep 24 12:59:20 CDT 2000
On Sun, 24 Sep 2000, Cash Perkins wrote:
> I'm trying to write a little script that will automagically pick a gif image from a specificed directory.
> So far I've got:
> #! /usr/local/bin/perl
> $basedir = "/home/wobblewire/html/avengers_site/images/";
> print "<img src=\"$basedir$files[$num]\">\n";
> This prints out Nothing. Permissions on rnd_image.cgi are wide open.
Don't use $basedir for the print, use the corresponding (hopefully) path
your web-server uses, from the Document Root Directory of the web-server.
It might be a part of the absolute path: "<img src=\"/images/$files[$num]\"\n"
Mighty Mouse is a cartoon. Superman is a real guy. No way a cartoon could
beat up a real guy! -- Teddy C. Abney
The posting address is: san-diego-pm-list at hfb.pm.org
List requests should be sent to: majordomo at hfb.pm.org
If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:
If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.
More information about the San-Diego-pm