exec( "echo 'Hello World'", &$output, &$return ); echo "external command returned: $output[0]"; echo "external exited with $return"; ?>