Rectangles in circles - SVG generation with php

This example shows how to create a simple SVG graphic with an arbitrary amount of rectangles drawn around a circle. Radius will adapt to number of elements.

To have a look at the source code, please simply consult the current directory and lock at either *.phps or *.text files with the same name. You also can look at a slightly more complex example: elements-on-arc-with-php.php

Number of elements: (less than 3 and more than 50 is a bad idea!)
Center of circle: x = y =
radius multiplier = (multiplier * number of elements = radius of the circle)

D.K.S. - April 2005