when tring to run powershell script using $out = shell_exec('powershell.exe -command C:\xampp\htdocs\web\ping.ps1 < NUL');
echo $out;
it hangs and noting is done , the page just keep loading , that's my simple script
ping 8.8.8.8 -t
i used this command in powershell in order to allow executing scripts at first ,
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
but nothing changes . I need help , how to execute powershell scripts using php ?