I am currently screwing around with php and python. I've made a simple python script which is literally just - print "Hello World"
My php script (which is inside my index.php main page) is as follows:
<?php
$output = null;
exec('C:\\Python27\\python.exe py\\test.py', $output, $return);
print_r($output);
?>
My problem is that it returns this:
Array ( [0] => Hello World )
Does anyone know how to only return Hello World
into my webpage?
Any help would be greatly appreciated.