shell_exec("cat newmap.svg 2>&1");
outputs the svg file to the browser, so it can definitely find the file. I'm
stumped. What's the difference between running rsvg directly from the
command line and executing it from PHP? Perhaps there are some environment
restrictions or something. Has anyone else been able to successfully execute
rsvg from PHP on nightshade?
Ryan Kaldari
On Wed, Feb 17, 2010 at 3:28 PM, Nikola Smolenski <smolensk(a)eunet.rs> wrote:
Дана Wednesday 17 February 2010 20:55:28 Ryan Kaldari
написа:
Good idea. The output from rsvg with 2>&1
is "Error reading SVG:". I've
tried using the full path to the SVG and even setting the permissions on
the file to 777, but I still get the same error. I also tried putting the
command in a shell script and executing the shell script from PHP, but it
gives the same results: a zero byte PNG file.
To me, it seems it can't find the SVG file. Try replacing rsvg with echo to
see what exactly are you giving it; then try replacing it with cat to see
if
anything could find the file.
_______________________________________________
Toolserver-l mailing list (Toolserver-l(a)lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list:
https://wiki.toolserver.org/view/Mailing_list_etiquette