'Error opening terminal: unknown. using shell exec

I would like to run this command linux command nload using shell_exec but i'm always getting an error :

"Error opening terminal: unknown." since it works fine using terminal when I access to my server using ssh, it works just fine, but with PHP using shell_exec return "Error opening terminal: unknown."

This is my code: echo shell_exec("nload");

php


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source