Re: Script for random images -- problem

2003-08-01 Thread David Gilden
Thanks, for your help, I did print out: $PICTURE_PATH = path_translated(); $PICTURE_URL = path_info(); print header; print $PICTURE_PATH, "\n"; print "$PICTURE_URL"; # solved the problem by grabbing the last part of the path $PICTURE_URL =~ m#(.+/?)+(/\w+)#; print "\nNEW:$2"; ... snip.

Re: Script for random images -- problem

2003-07-31 Thread Oliver Schnarchendorf
On Thu, 31 Jul 2003 17:58:43 -0500, David Gilden wrote: > $PICTURE_PATH = path_translated(); > $PICTURE_URL = path_info(); > chdir $PICTURE_PATH > or die "Couldn't chdir to pictures directory: $!"; Hello David, 'perldoc CGI', '/path_translated' did return the following information: