in reply to Random Image Displayer

You could point an IMG SRC to a perl script which did...
... code to get random image name ... open(IMG, $img) or die $!; print "Content-type: image/jpeg\n\n"; #or gif, png whatever it is { local $/; print <IMG>; } close IMG;
or you could have a perl script running that changed a symbolic link every few seconds, and just IMG SRC that link (much less processor intensive, but doesn't change for EVERY page load...)

                - Ant
                - Some of my best work - Fish Dinner

Replies are listed 'Best First'.
Re: Re: Random Image Displayer
by LostS (Friar) on Aug 09, 2001 at 22:33 UTC
    I tried your suggestion... and I swear the server configuration is FUBAR... I am about to just get up and leave this job.

    Billy S.

      This isn't PHPMonks, but just so you know - you can execute or include the script in PHP just like you can in SSI. To include a file, do <?include "file"?>, and to execute it, use backticks or system() as you would in perl.

      to bad there is not a shove array function in perl... you could submit this to your superiors...
      shove @it, 'this job';

                      - Ant
                      - Some of my best work - Fish Dinner