Hello, I have a big problem with reading a value in SVG through a PHP file. The value i want to draw is "$large". There are 3 little files restricted to the minimum.
I would be so happy if someone could find the mistake here. Thanks a lot. Gil --------- data.php --------- <?php $large = 750; $haut = 450; ?> ---------- index.php ---------- <HTML> <BODY> <?php include("data.php"); // ok echo("$large"); // ok echo("<embed width=$large height=$haut src='svg.php'>"); ?> </BODY> </HTML> -------- svg.php -------- <?php include("data.php"); // OK ?????? function writeSVG() { global $large, $haut; echo "<?xml version='1.0' encoding='iso-8859-1'?>\n"; echo "<svg id='root' xml:space='preserve' width='$large' height='$haut'>\n"; echo "<text x='40' y='40'>$large</text>\n"; echo "</svg>"; } header("Content-Type: image/svg+xml"); writeSVG(); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php