<?php
echo "shell_exec available: " . (function_exists('shell_exec') ? 'YES' : 'NO') . "\n";
$test = shell_exec("echo 'test'");
echo "Simple echo test: " . ($test ? $test : 'FAILED') . "\n";
$python = shell_exec("/usr/local/bin/ollama_api.py 'Say OK' 2>&1");
echo "Python wrapper test: " . ($python ? $python : 'FAILED') . "\n";
?>
← Back