hangs when execute powershell script using php -
when tring run powershell script using $out = shell_exec('powershell.exe -command c:\xampp\htdocs\web\ping.ps1 < nul'); echo $out;
it hangs , noting done , page keep loading , that's simple script
ping 8.8.8.8 -t
i used command in powershell in order allow executing scripts @ first ,
set-executionpolicy remotesigned -scope currentuser
but nothing changes . need , how execute powershell scripts using php ?
this happening because tag -t gives command prompt command continue pinging until it's interrupted.
the constant loading php executing power shell script , waiting said script stop executing before continuing. because power shell script never stops until navigate away page. it'll load
so interruptions php memory being maxed out , failing. or user navigates away page halts execution. please review
i recommend using count capturing input after execution
Comments
Post a Comment