Yeah this is a BIT of topic...

I have this code:
  header("Content-type: image/svg+xml");
  print('<?xml version="1.0" encoding="iso-8859-1"?>');

<?php $text="This page uses PHP and SVG"; ?>

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"

<svg xml:space="preserve" width="100%" height="20">
        <desc>Using styles</desc>
        <rect style="fill:#333333" x="0" y="0" width="100%" height="145"/>
        <text x="50" y="70" style="text-anchor:left; fill:#cccccc; font-size:26;
        font-weight:15; font-family:Tahoma, Verdana; font-style:regular"><?php echo
        $text; ?></text>

See for yourself at:

This produces an error message (which you can read at the same page).

Why is this?
I had an xml/svg "specialist" make this code and it works perfectly on his
server... Anyone got ANY clue as to why this is happening?

ehhh... does anyone know of any good XML/SVG mailing lists out there ? :S

Didn't know where else to ask.....

 - Torkil

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to