I have created a script in php in which i have created a function which executes a command using exec(). The function is as follows
public function tellWhoAmI()
{
return exec('whoami');
}
On localhost
it is working as it should but when i upload it to the server the exec() does not seem to be working.
Question:-
Do i need to do something else to run this on real server?