Questions tagged [passthru]

PHP Function to execute an external program and display raw output.

void passthru ( string $command [, int &$return_var ] )

The passthru() function is similar to the function in that it executes a command. This function should be used in place of or when the output from the Unix command is binary data which needs to be passed directly back to the browser.

92 questions
-1
votes
1 answer

WinDivert passthru example returns "warning: failed to reinject packet (1237)"

I am running Windows 7 Ultimate with SP1. I downloaded the WinDivert-1.0.5-MSVC package and ran the passthru.exe file with command "E:\lib\WinDivert-1.0.5-MSVC\x86>passthru.exe true 1". Then it gave me the error: "warning: failed to reinject packet…
hsluoyz
  • 2,739
  • 5
  • 35
  • 59
-3
votes
1 answer

PHP Script execution stops after 60 secs

this PHP script gets terminated after 60 seconds. I have already set: ini_set('max_execution_time', 0); ini_set('memory_limit','1024M'); And want to execute php using passthru or exec, and have recursive function to check status in db: function…
1 2 3 4 5 6
7