Including block-random.php as a file

genzil

Joined: 2003-07-26
Posts: 17
Posted: Mon, 2005-05-02 18:30

Just thought I would note this down here in case anyone else finds it useful.

I downloaded the version of block-random.php as found in the latest verion and changed it to suit my needs.

I prefer to have the random image code included into my web app rather then call it over http. I can control the environment more, and I find that some host providors prevent you from including using the usuall include("http://...");

It still copes with the original method of calling it, full comments and examples in the code. :-)

Rather than include all of the code on this page you can download and view it from http://www.tuxx.homelinux.org/links/block-random.phps

P.S. Apologies if others have also posted this before, I couldn't find any reference when I did a search.