For some reason I can&#39;t get the command to work properly from PHP, although it works fine from the command line. I tried to execute the following from PHP on nightshade:<br>    $command = &quot;rsvg newmap.svg newmap.png&quot;;<br>
    $makemap = system($command, $retval);<br>    if ($retval) echo &quot;PNG creation error.&quot;;<br>This creates a file called newmap.png, but the file is always 0 bytes, and no error is returned. Running the same command from the command line works perfectly. Any idea what&#39;s wrong? Could this have anything to do with the rsvg security patch? Do I need to pass the file differently within a script?<br>
<br>Ryan Kaldari<br><br><div class="gmail_quote">On Mon, Feb 15, 2010 at 6:21 PM, Christian Thiele <span dir="ltr">&lt;<a href="mailto:apper@apper.de">apper@apper.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Am 16.02.2010, 00:53 Uhr, schrieb Ryan Kaldari &lt;<a href="mailto:kaldari@gmail.com">kaldari@gmail.com</a>&gt;:<br>
<div class="im"><br>
&gt; Has anyone else dealt with this problem on the toolserver? I&#39;ve heard of<br>
&gt; a couple other possible solutions:<br>
<br>
</div>I&#39;m using rsvg on the toolserver for four years now and it produces good<br>
results. You could simply run it &quot;rsvg source.svg dest.png&quot;. I don&#39;t know<br>
about security problems, but as I understood, you create the SVGs for your<br>
own, so this shouldn&#39;t be a problem.<br>
<br>
Sincerelly,<br>
Christian Thiele / apper<br>
<br>
_______________________________________________<br>
Toolserver-l mailing list (<a href="mailto:Toolserver-l@lists.wikimedia.org">Toolserver-l@lists.wikimedia.org</a>)<br>
<a href="https://lists.wikimedia.org/mailman/listinfo/toolserver-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/toolserver-l</a><br>
Posting guidelines for this list: <a href="https://wiki.toolserver.org/view/Mailing_list_etiquette" target="_blank">https://wiki.toolserver.org/view/Mailing_list_etiquette</a><br>
</blockquote></div><br>