Re: Problem with rsvg-convert using php

Juan Felipe Alvarez Saldarriaga <[email protected]>
Newsgroups gmane.comp.gnome.lib.librsvg.devel
Message-ID <[email protected]>
Tom Schindl wrote:
> Hi,
>
> Is the environment in the exec-call from PHP the same than the one you
> have when running rsvg-convert from the command line directly (e.g. do
> you have the same LD_LIBRARY_PATH usw. set)?
>
>   

Well, I try to exec the same command on my shell, using the www-data 
user (su - www-data) and the pdf is created right. I guess would be my 
PHP config.

> Tom
>
> Juan Felipe Alvarez Saldarriaga schrieb:
>   
>> Hello list, I know this is the development list, but is just a little 
>> question :)
>>
>> Im traying to do a convertion, SVG to PDF, using rsvg-convert on PHP, Im 
>> doing an exec(), this is the command:
>> exec( "rsvg-convert --format=pdf 
>> /home/jfalvarez/php4/test/svgs/test_svg_tmp.svg --output 
>> /home/jfalvarez/php4/test/svgs/test_pdf.pdf" );
>>
>> rsvg-convert permissions:
>> -rwxr-xr-x 1 root root 10016 2006-06-22 15:04 /usr/bin/rsvg-convert
>>
>> I have the folder with all the permissions:
>> drwxrwxrwx 4 jfalvarez jfalvarez 4096 2007-01-23 19:42 svgs
>>
>> The problem is, PHP can execute the command, but when you see the file 
>> size is 0 bytes:
>> -rw-r--r-- 1 www-data  www-data         0 2007-01-23 19:49 test_pdf.pdf
>>
>> But if I execute the same command on my shell the pdf is right, I mean, 
>> like 9MB.
>>
>> I dont think if some permissions problem, because the pdf file existe on 
>> the file system.
>>
>> If somebody can help me :)
>>
>> Thx for any help.
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Librsvg-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/librsvg-devel
>>
>>     
>
>
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.