Re: Problem with rsvg-convert using php
Tom Schindl <[email protected]>
| Newsgroups | gmane.comp.gnome.lib.librsvg.devel |
|---|---|
| Message-ID | <[email protected]> |
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)? 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 > -- B e s t S o l u t i o n . a t EDV Systemhaus GmbH ------------------------------------------------------------------------ tom schindl leiter softwareentwicklung/CSE mobile ++43 676 3232147 ------------------------------------------------------------------------ eduard-bodem-gasse 8/3 A-6020 innsbruck fax ++43 512 935833 http://www.bestsolution.at phone ++43 512 935834 ------------------------------------------------------------------------- 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
signature.asc
(application/pgp-signature, 253 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFFtyiF4E2ESUTeSPQRAvVpAJwNBNL7HbNUolvgXGdPaV2iDdN8RwCbBf7Q +mfwVWHx48ILxiFee/JtkC4= =k491 -----END PGP SIGNATURE-----