Do you have a question? Post it now! No Registration Necessary. Now with pictures!
November 4, 2004, 8:05 pm
rate this thread
I am calling a python script using popen. as follows
$handle = popen(" python input1.py ", 'r');
echo "'$handle'; " . gettype($handle) . "\n";
$read = fread($handle, 2096);
echo "Read is:".$read;
I am getting output as
'Resource id #1'; resource Read is:
ie.The output is not getting read.
My python script uses the module defined by another python script.
When i run this from the command line as
python input1.py i get the required output.
Could you tell me why this is happening?
- » 22surf.org Zurich OSCOM presentation: LAMP Hackers will solve DRM and Rule The Universe
- — Previous thread in » PHP Scripting Forum