Voting

: two minus one?
(Example: nine)

The Note You're Voting On

php at keithtyler dot net
15 years ago
Note that you *have* to do a read on the handle before you can feof(), even if the command outputs nothing! So..

<?php
$f
=popen("sleep 2","r");
while (!
feof($f)) {}
pclose($f);
print
"done";
?>

will never finish.

<< Back to user notes page

To Top