note 14178 rejected and deleted from function.exec.php by zak
| From: | zak@php.net | Date: | Wed, 25 Jul 2001 16:47:39 +0000 |
| Subject: | note 14178 rejected and deleted from function.exec.php by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15829@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.