note 14178 added to function.exec.php

From: Date: Fri, 20 Jul 2001 04:59:41 +0000
Subject: note 14178 added to function.exec.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15606@lists.php.net to get a copy of this message
Under windows 2000 sp2, using apache 1.3.20 and php 4.06 as a module. I'm using the grep 2.4.2 as provided with the cygwin toolchain, and wanted to use exec like this: exec("grep default\.ida $web_logs", $nothing, $return_var); I just wanted to know if/when the Code Red Worm might hit one of my machines. Anyhow, I was really interested in getting $return_var, since I know grep can let me know if it found anything that way. But the only result I was getting, grep finding anything or not, was always 259. What good is that number? I could understand 42... Executive summary: exec doesn't handle it's last argument properly under windows 2000. http://www.php.net/manual/en/function.exec.php

« previous php.notes (#15606) next »