I want to create a SVG file with PHP, and then include it in a HTML file. Here\'s what I have so far (following this tutorial)
svg.php:
<
GeoPhoenix answered above, I figured I'd put it into an answer so that there's an offical one:
if you remove the
line it renders the svg
PHP can see as the opening tag for PHP code (rather than an XML declaration), thanks to the short-open-tag setting (thanks to fvu). This is an easy fix, I just replaced
with
';?>
This has the same intended result and doesn't cause syntax errors.