php can run the python programm from php shell but not on the webbrowser -


i have python script uses ipyhon , can executed when run terminal using php -a (interactive shell), when type localserver/rdmip_ke.php (test.php script wrtten gedit in ubuntu) nothing happens , see blank page. idea why?

<?php $command = escapeshellcmd('/home/administrator/desktop/rdmip_ke.py'); $output = shell_exec($command); echo $output;  ?> 

just update: checked log file , gives me list of errors example pyplot: file "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 2460,ax = gca() in plot

but again said before python program works fine , can executed php if run php shell. don't understand what's going on.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -