Re: [PHP] Strange PHP/Python problem

2009-06-09 Thread Robert Cummings
Adrian Price-Whelan wrote: Hey all- Something strange is happening with a python script I am executing from a php page: I am executing this by doing $output = `python blahblah.py arg1 arg2 arg3` Say my Python code looks like this: import sys import os thisPID = os.getpid() print thisPID pri

[PHP] Strange PHP/Python problem

2009-06-08 Thread Adrian Price-Whelan
Hey all- Something strange is happening with a python script I am executing from a php page: I am executing this by doing $output = `python blahblah.py arg1 arg2 arg3` Say my Python code looks like this: import sys import os thisPID = os.getpid() print thisPID print "1" RADeg = float(sys