Re: [Open Babel] Babel works in shell but not in PHP

2012-02-06 Thread David Hall
Also, I should add, you should see whether your PHP is using safe mode. As described at http://php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-exec-dir , safe mode can be used to restrict what directories one can execute programs from. -David On Mon, Feb 6, 2012 at 11:51 AM, David Hall w

Re: [Open Babel] Babel works in shell but not in PHP

2012-02-06 Thread David Hall
are the environment variables correct? As in, to run it on the command line, do you have special PATH or other settings? If so, you should use http://www.php.net/putenv to put those variables into the PHP script. -David On Tue, Jan 31, 2012 at 4:25 AM, Sangeetha Subramaniam wrote: > Dear All,

[Open Babel] Babel works in shell but not in PHP

2012-02-06 Thread Sangeetha Subramaniam
Dear All, Can someone help me to run babel for file conversion in PhP. Here is what I want to do: "babel -ismi compound.smi -osdf -0 com_3d.sdf --gen3d" This runs fine in command as well as in shell, but not in PHP. There is no problem with file permission. Can someone please help. PS:I see t