Why is SVG-PHP blank?

Hi,
I specifically need this format for my project. I'm sending u the codes:

1. Save the code as a.php

<?
   header("Content-type: image/svg+xml");
   print('<?xml version="1.0" encoding="iso-8859-1"?>');
?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/
TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
<!-- Creator: CorelDRAW -->
<svg xml:space="preserve" x="-4.72439in" y="3.5434in" width="9.44879in" height="
7.0868in" style="shape-rendering:geometricPrecision; text-rendering:geometricPre
cision; image-rendering:optimizeQuality"
     viewBox="-4724 0 9448 7086">
<?

print ('<a xlink:href="b.php">
<g id="Layer 1">
  <path id="44535316" style="fill:#FFFFFF" d="M-4724 0l9448 0 0 7086 -9448 0 0 -7086z"/>
  <g>
   <path id="44535228" style="fill:#DB281F;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2592 819c-27,-24 -71,-27 -72,21 32,43 -2,57 7,71l65 -92z"/>
   <path id="44535140" style="fill:#221D1B;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2579 905c9,13 14,7 12,23 -32,7 -51,16 -68,42 -18,11 -49,172 -51,244 47,-65 44,-233 94,-227 27,19 39,80 36,158 -21,99 -30,224 -43,324 -13,21 -63,8 -57,32 25,15 57,6 86,-5 4,-32 11,-242 55,-266 74,72 58,250 47,274 23,13 61,9 84,9 12,-23 -42,-11 -54,-35 20,-174 -22,-267 -52,-334 0,-95 12,-126 -11,-192 135,-24 11,144 22,180 -2,0 33,-42 60,-102 5,-31 18,-76 -28,-106 -51,-1 -94,-12 -118,-34l-14 15z"/>
   <path id="44535052" style="fill:#221D1B;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2640 888c23,33 61,21 74,6 10,-40 0,-61 -26,-75l-48 69z"/>
   <path id="44534964" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3075 1199c-9,68 97,128 106,77 57,5 33,-59 -38,-92 -6,-46 -46,-105 -80,-105 -19,-1 -51,73 12,120z"/>
   <path id="44534876" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2767 1387c-25,-73 12,-62 30,-47 43,-17 46,29 33,45 26,123 -112,51 -63,2z"/>
   <path id="44534788" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2633 1448c-16,-20 -44,-49 -16,-65 -32,-68 17,-50 31,-40 51,-43 48,29 34,46 25,38 -10,68 -49,59z"/>
   <path id="44534700" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2528 1442c-33,-30 -1,-121 41,-117 39,17 27,136 -41,117z"/>
   <path id="44534612" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3301 1056c-15,-57 66,-185 106,-176 5,-42 27,-96 65,-92 59,29 14,104 -23,131 0,35 0,68 -52,78 -17,64 -66,94 -96,59z"/>
   <path id="44534524" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3141 995c9,-57 23,-40 39,-53 25,-74 56,-78 74,-57 21,-7 57,3 18,60 -8,47 -32,73 -68,98 -14,26 -15,34 -57,60 -143,158 -115,-102 -6,-108z"/>
   <path id="44534436" style="fill:#AF802A;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3393 1283c18,-36 47,-39 54,-42 4,-219 132,-242 212,-431 2,44 -29,84 -97,177 -52,60 -100,136 -101,249 17,-4 27,-11 58,-4 47,-176 145,-156 234,-319 3,111 -157,127 -222,319 236,23 325,229 472,253 77,-62 18,-120 47,-119 13,36 8,89 -30,121 42,6 69,6 91,8 85,-44 49,-141 60,-129 23,48 -3,108 -43,130 61,-7 178,-41 151,-134 72,153 -283,207 -426,76 -133,-119 -166,-135 -250,-156 -212,-42 -170,120 -167,231 -6,-1 -81,0 -87,-1 -10,-157 16,-178 36,-222l8 -7z"/>
   <path id="44534348" style="fill:#AF802A;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3401 1290c-40,-185 16,-308 163,-335 175,-6 124,164 251,302 -149,-71 -68,-362 -311,-272 -104,64 -111,169 -92,295l-11 10z"/>
   <path id="44534260" style="fill:#FFFFFF;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-4724 1513l2500 0 -2500 0z"/>
   <path id="44534172" style="fill:#FFFFFF;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2224 0l0 2263 0 -2263z"/>
   <path id="44534084" style="fill:#FFFFFF;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-4724 2263l2500 0 -2500 0z"/>
   <path id="44533996" style="fill:#FFFFFF;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-4218 1725l0 -397 605 0 0 397 -605 0z"/>
  </g>
 </g>
</a>');
?>

</svg>

 

2. Save the code as b.php

<html>
<head>
</head>

<body>

<form method=post action="a.php">
<input type="submit" name="Validate" value="Submit">
</form>

</body>
</html>

 

3. Save the code as c.php

<?
   header("Content-type: image/svg+xml");
   print('<?xml version="1.0" encoding="iso-8859-1"?>');
?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/
TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
<!-- Creator: CorelDRAW -->
<svg xml:space="preserve" x="-4.72439in" y="3.5434in" width="9.44879in" height="
7.0868in" style="shape-rendering:geometricPrecision; text-rendering:geometricPre
cision; image-rendering:optimizeQuality"
     viewBox="-4724 0 9448 7086">
<?

print ('<a xlink:href="d.php">
 <g id="Layer 1">
  <path id="44409348" style="fill:#FFFFFF" d="M-4724 0l9448 0 0 7086 -9448 0 0 -7086z"/>
  <g>
   <path id="44409260" style="fill:#FFFFFF;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-4724 1513l2500 0 -2500 0z"/>
   <path id="44409172" style="fill:#FFFFFF;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2224 0l0 2263 0 -2263z"/>
   <path id="44409084" style="fill:#FFFFFF;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-4724 2263l2500 0 -2500 0z"/>
   <path id="44408996" style="fill:#FFFFFF;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-4218 1725l0 -397 605 0 0 397 -605 0z"/>
   <path id="44408908" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3635 1329l-58 -65 -50 -52 -39 -7 -37 7 -11 18 -12 22 0 -28 12 -35 25 -14 41 -4 21 4 41 25 51 111 16 18z"/>
   <path id="44408820" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3209 1377l62 -63 46 -33 41 -11 33 0 14 8 13 22 0 -30 -13 -33 -27 -15 -39 -2 -22 2 -38 25 -52 111 -18 19z"/>
   <path id="44408732" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3034 982c-22,71 -36,154 -65,218 -26,66 -63,121 -100,168 -37,45 -89,89 -124,115 -34,26 -49,11 -76,24 21,-24 38,-27 57,-54 19,-30 21,-55 49,-106 27,-52 69,-143 112,-204 43,-61 98,-109 147,-161z"/>
   <path id="44408644" style="fill:none" d="M-3060 1025c-25,49 -39,79 -65,127 -20,34 -31,53 -51,85 -23,38 -33,61 -57,98 -17,20 -24,34 -43,54 -17,24 -26,37 -45,61"/>
   <path id="44408556" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3468 845c-16,75 -41,157 -46,223 -6,70 0,138 11,198 10,57 36,119 56,159 18,37 34,52 52,77 -7,-32 -19,-61 -21,-97 -2,-36 3,-58 7,-115 0,-58 4,-159 -5,-233 -9,-73 -35,-141 -54,-212z"/>
   <path id="44408468" style="fill:none" d="M-3462 915c-2,57 -5,87 -2,142 -3,38 1,61 2,99 3,44 1,69 6,114 4,26 7,41 10,67 5,29 8,45 12,75"/>
   <path id="44408380" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3118 945c-14,73 -20,156 -38,224 -19,65 -49,126 -80,176 -32,50 -78,98 -108,128 -33,29 -41,21 -67,37 18,-26 29,-35 43,-67 16,-30 16,-55 37,-108 20,-54 50,-150 86,-216 34,-64 86,-117 127,-174z"/>
   <path id="44408292" style="fill:none" d="M-3139 989c-19,52 -30,82 -51,133 -13,36 -22,56 -39,91 -18,41 -27,65 -47,101 -12,25 -20,38 -33,61 -14,25 -22,38 -39,66"/>
   <path id="44408204" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3778 982c21,71 38,154 62,218 30,66 66,121 101,168 40,45 91,89 126,115 33,26 49,13 77,27 -21,-24 -40,-30 -58,-57 -19,-30 -23,-55 -48,-106 -27,-52 -71,-143 -114,-204 -41,-61 -98,-109 -146,-161z"/>
   <path id="44408116" style="fill:none" d="M-3751 1025c22,49 38,79 65,127 17,34 29,53 48,85 23,38 33,61 60,98 16,20 25,34 41,54 19,24 26,37 46,61"/>
   <path id="44408028" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3227 892c-43,63 -95,129 -125,192 -30,61 -48,128 -57,186 -12,57 -11,125 -9,167 3,43 10,39 20,69 5,-32 9,-39 16,-72 11,-34 27,-55 48,-107 20,-54 64,-148 80,-219 17,-71 17,-145 27,-216z"/>
   <path id="44407940" style="fill:none" d="M-3245 940c-21,50 -31,80 -51,131 -14,37 -21,57 -33,95 -14,41 -23,64 -33,107 -9,29 -12,41 -16,68 -7,28 -10,44 -17,74"/>
   <path id="44407852" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3657 918c7,76 8,159 21,227 15,68 41,130 68,184 29,52 71,104 99,137 29,30 49,21 73,41 -16,-30 -34,-37 -47,-70 -13,-32 -13,-58 -29,-113 -17,-54 -41,-153 -72,-220 -29,-67 -74,-124 -113,-186z"/>
   <path id="44407764" style="fill:none" d="M-3638 973c13,54 22,84 38,138 12,37 21,55 34,94 15,39 21,65 39,105 10,26 18,39 30,61 13,29 18,42 33,70"/>
   <path id="44407676" style="fill:none" d="M-3830 1212c6,-8 12,-14 22,-17 11,-5 17,-5 27,-5 8,0 11,3 20,5 11,2 18,2 29,9 15,8 22,15 33,28"/>
   <path id="44407588" style="fill:none" d="M-3132 1275c12,-12 20,-18 34,-28 13,-4 21,-10 35,-10 13,0 19,0 30,6 13,4 20,13 26,24"/>
   <path id="44407500" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3449 1196l40 -18 41 7 -23 85 -58 -74z"/>
   <path id="44407412" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3405 1506c-4,-29 0,-10 -3,-39 -5,-32 -1,-45 -5,-79 -5,-33 -7,-49 -10,-80 -2,-34 -15,-75 -24,-108 -2,-10 6,0 14,5 8,1 12,8 18,19 7,9 13,28 15,30 0,2 4,-13 5,-22 7,-18 -4,0 7,-22 7,-11 24,-24 23,-11 -3,23 -5,53 -5,71 0,21 2,32 2,54 -2,18 0,41 -2,61 0,13 0,33 -1,47 -4,27 1,16 0,43 -4,15 0,18 0,32 0,13 -4,0 -13,0 -21,0 -21,6 -21,-1z"/>
   <path id="44407324" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3404 1182l5 18 3 22 -8 -40z"/>
   <path id="44407236" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3396 1266l1 70 6 66 1 48 3 36 -11 -220z"/>
   <path id="44407148" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3441 1504c-13,-24 -2,-10 -13,-34 -15,-33 -15,-44 -28,-75 -12,-30 -21,-45 -32,-74 -13,-33 -38,-67 -57,-95 -4,-10 -1,-1 14,-1 10,0 18,12 20,22 7,23 1,43 4,46 0,0 22,-44 22,-54 2,-17 -3,4 2,-23 3,-10 16,-28 16,-17 4,23 11,53 17,68 7,24 13,33 17,54 5,17 13,40 18,58 3,10 7,32 11,44 5,30 7,14 12,44 3,13 9,24 12,40 0,0 -2,9 -9,6 -7,-4 -19,7 -26,-9z"/>
   <path id="44407060" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3536 1206l11 19 -1 27 -10 -46z"/>
   <path id="44406972" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3506 1284l24 67 25 64 16 44 13 32 -78 -207z"/>
   <path id="44406884" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3571 1222l35 -17 39 -8 -74 25z"/>
   <path id="44406796" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3203 1227l-30 -30 -43 -4 -7 85 80 -51z"/>
   <path id="44406708" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3348 1500c12,-27 4,-9 17,-34 14,-31 15,-44 30,-75 15,-29 22,-42 38,-71 13,-33 39,-66 60,-93 4,-8 -6,-2 -17,0 -6,-2 -13,3 -23,10 -11,7 -21,23 -23,26 -2,0 2,-14 2,-22 -2,-19 4,2 0,-27 -2,-9 -15,-26 -17,-15 -7,23 -14,53 -21,68 -8,21 -12,29 -20,51 -5,18 -14,39 -20,57 -2,14 -10,33 -13,45 -7,27 -7,15 -16,41 -4,16 -8,25 -14,41 -4,12 0,4 11,4 13,-2 13,18 26,-6z"/>
   <path id="44406620" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3240 1206l-10 19 -7 19 17 -38z"/>
   <path id="44406532" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3274 1284l-27 65 -26 63 -21 43 -11 31 85 -202z"/>
   <path id="44406444" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3433 1507c0,-7 15,-7 37,-7 19,0 34,11 37,13 5,0 -74,0 -74,-6z"/>
   <path id="44406356" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3446 1500c-24,-25 -6,-10 -29,-33 -31,-30 -31,-34 -58,-59 -27,-26 -20,-33 -48,-43 -26,-10 -37,-18 -55,-29 -7,-5 28,-49 41,-41 11,7 15,19 27,32 13,14 23,30 32,42 15,10 22,26 30,37 26,29 12,17 34,42 13,15 20,22 34,41 15,14 2,4 2,11 0,0 8,14 -10,0z"/>
   <path id="44406268" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3591 1301c18,-6 -45,-11 -47,0 -4,10 -4,17 -4,30 1,10 1,19 3,30 1,7 -4,3 14,39 2,-56 13,-42 13,-53 0,-18 4,-16 7,-32 0,-14 19,-17 14,-14z"/>
   <path id="44406180" style="fill:none" d="M-3605 1331c9,3 0,-8 13,-2 14,6 19,16 34,29 32,21 44,50 78,89"/>
   <path id="44406092" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3348 1507c21,-24 0,-14 20,-32 27,-28 20,-39 47,-62 24,-24 17,-34 41,-44 25,-8 37,-19 54,-28 8,-6 -22,-50 -34,-40 -13,6 -17,17 -30,31 -13,15 -20,30 -31,43 -13,10 -17,27 -26,37 -22,25 -6,20 -25,43 -11,14 -10,25 -20,41 -13,13 0,4 0,11 0,0 -7,13 4,0z"/>
   <path id="44406004" style="fill:#009341;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-3226 1304c-17,-3 47,-10 47,0 1,10 1,18 0,31 -4,10 -4,19 -6,30 -4,4 4,4 -20,37 6,-54 -6,-40 -4,-51 1,-16 -3,-15 -3,-30 -3,-17 -18,-18 -14,-17z"/>
   <path id="44405916" style="fill:none" d="M-3215 1336c-9,1 0,-7 -10,-2 -17,5 -20,16 -36,30 -29,18 -35,51 -64,89"/>
   <path id="44405828" style="fill:#DB281F;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2738 313c-45,-43 -122,-47 -123,36 54,74 -4,99 12,123l111 -159z"/>
   <path id="44405740" style="fill:#221D1B;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2713 461c15,22 24,12 19,39 -56,13 -89,29 -116,74 -33,20 -71,58 -72,40 -3,-29 61,-153 46,-217 -47,96 -103,208 -98,307 64,11 111,-112 197,-102 46,34 68,141 63,273 -36,172 -54,391 -76,564 -20,36 -108,14 -97,55 44,26 100,9 149,-8 7,-57 19,-420 94,-462 128,125 101,433 81,474 41,23 108,18 147,18 20,-41 -73,-20 -95,-62 36,-302 -37,-464 -88,-579 0,-164 20,-219 -21,-332 234,-43 20,250 40,313 -6,-2 57,-73 103,-179 9,-53 30,-132 -48,-182 -88,-2 -164,-21 -206,-60l-22 26z"/>
   <path id="44405652" style="fill:#221D1B;stroke:#221D1B;stroke-width:3;stroke-linejoin:bevel" d="M-2820 433c40,56 105,36 128,8 18,-69 0,-105 -45,-128l-83 120z"/>
  </g>
</g>
</a>');
?>

</svg>

 

4. Save the code as d.php

<html>
<head>
</head>

<body>

<form method=post action="c.php">
<input type="submit" name="Validate" value="Submit">
</form>

</body>
</html>

 

5. Working:

Open a.php in browser. The image is visible. Click it.
Button in b.php is visible. Click it. 
Image at a.php is visible. (NO PROBLEM as THE SVG CODE IS 3.67KB)
For all images less than about 8KB, I dont have any problem.

Open c.php in browser. The image is voisible. Click it.
Button in d.php is visible. Click it.
Image at c.php is not visible. A blank screen is displayed as SVG CODE is 9.23KB.
For all codes greater than about 8KB, I have this problem.

Please suggest me what might be wrong. Thanks so much in advance.

Shwathi.

Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.

Received on Thursday, 11 March 2004 00:24:51 UTC