[thelist] PHP Includes for Random Sidebar Boxes

jono at charlestonwebsolutions.com jono at charlestonwebsolutions.com
Thu Mar 2 13:09:31 CST 2006


> On Thursday 02 March 2006 08:37 am, jono at charlestonwebsolutions.com
> wrote:
>> 1. Save each snippet of html for the 6 boxes in a directory called
> sb-boxes
>>
>> 2. Name each snippet sb-box1.inc, sb-box2.inc, sb-box3.inc, and so on
>
>
> include 'path/to/sb-boxes/sb-box' . rand(1, 6) . '.inc';
>
> http://us3.php.net/rand


If that works, that is AMAZINGLY AWESOME!  That's the kind of easy I was
thinking about!  Thanks!  I'll post back if I run into trouble.

-- 
Jono Young
Designer | Developer | Illustrator
Charleston Web Solutions
Bringing Higher Standards to the Lowcountry
http://www.charlestonwebsolutions.com



More information about the thelist mailing list