Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I am calling a python script using popen. as follows

$handle = popen(" python ", '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 i get the required output.

Could you tell me why this is happening?


Site Timeline