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

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_tcpip_pro_pingconnect.mspx?mfr=true

i recommend using count capturing input after execution


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -