note 9587 deleted from function.popen by felipe
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: stevet at linuxfan dot com ---- In PHP3, I could do: $query = "echo hello world | mycmd" $fp = ($query, "r"); Under PHP4, this just produces "hello world | mycmd" as the output - the pipe is not executed. Instead, use: $query = "hello world"; $cmd = "mycmd"; $fp = popen($cmd, "w+"); fwrite($fp, $query);