I want to run CMD commands in php through shell_exec() function to get the domain details. When I try $detail = "whois " . "google.com";
echo $res = shell_exec($detail);
on online php editor it return correct information but when I run this code on local server Xampp it shows blank screen does not show any result or any error.