For some reason I can'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: $command = "rsvg newmap.svg newmap.png"; $makemap = system($command, $retval); if ($retval) echo "PNG creation error."; 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's wrong? Could this have anything to do with the rsvg security patch? Do I need to pass the file differently within a script?
Ryan Kaldari
On Mon, Feb 15, 2010 at 6:21 PM, Christian Thiele apper@apper.de wrote:
Hi,
Am 16.02.2010, 00:53 Uhr, schrieb Ryan Kaldari kaldari@gmail.com:
Has anyone else dealt with this problem on the toolserver? I've heard of a couple other possible solutions:
I'm using rsvg on the toolserver for four years now and it produces good results. You could simply run it "rsvg source.svg dest.png". I don't know about security problems, but as I understood, you create the SVGs for your own, so this shouldn't be a problem.
Sincerelly, Christian Thiele / apper
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette