Hey,
i was wondering if any of the php wiz's here could give me some guidance
i'm trying to pass data to a python program from a php script and get
output back to php as a raw string.

I tried
 
<?php system("python /full/path/to/program.py $data"); ?>

and get the first token in $data back rather than the output of program.py
I have program.py's run permissions set properly and from setting a few
debug options i know that program.py is running(it writes to a log)
what is it that i don't understand about php that's causing this.


 l@                                                          _________
 ae          premise 1: The Truth Makes No Sense            (         )__
 pr                                                    ____(             )
 rn          premise 2: Beauty Is Truth               (                   )
 i.                                                    / / / / / / / / / /
 co         conclusion: Beauty Is Unconscious        / / / / / / / / / /  
 er                       \@/                  http://www.efn.org/~laprice
  g                        |                                                  
__________________________/_\_________________________________________________

Reply via email to