A PHP Problem. Help me fix it! (35)

6 Name: !WAHa.06x36 04/12/14(Tue)00:10 ID:csvBZrmb [Del]

#!/usr/bin/perl

my $directory="images/front/src";
my @files=(glob("$directory/*.jpg"),glob("$directory/*.png"),glob("$directory/*.gif"));
my $file=$files[rand @files];

print "Status: 302 Found\n";
print "Location: $file\n";
print "\n";

Or, if you only have image files in that directory, you can change line 4 to:

my @files=glob("$directory/*");
This thread has been closed. You cannot post in this thread any longer.