Cxcalc & php : compute from variable

User abe50b9859

17-09-2012 14:42:26

Hi,


I would like to skip the file generation and compute properties directly from sdf as text stored in php variable. Is it possible ? I mean like in marvin applets and JavaScript, we can load sdf from JavaScript variable.


Thanks.

ChemAxon 2db1f4037e

21-09-2012 10:23:56

Hi qud,


I am attaching a PHP file that shows you how to pass PHP variable as input to cxcalc.


The sample uses the cxcalc command line tool, and communicates with pipes to standard input, output and error.


The sample file created on OS X, so you may need to edit the $cxcalc variable to point to your cxcalc executable.


 


Cheers,


csepi

User abe50b9859

21-09-2012 11:00:10

Hi csepi,


Well i didn't thought about pipes, that's a good idea. I think it'll be fine and i will reuse it


Thank you.

ChemAxon 2db1f4037e

21-09-2012 11:09:41

Hi qud,


I'm glad I could help you with that.


Cheers,


csepi