Re: whois Domain??
| From: | Curt Zirzow | Date: | Wed, 10 Jan 2007 00:10:49 +0000 |
| Subject: | Re: whois Domain?? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246818@lists.php.net to get a copy of this message | ||
On 1/9/07, Ashley M. Kirchner <ashley@pcraft.com> wrote:
Curt Zirzow wrote: Assuming paths is evil :)ha! nice any shell command should really be used like: $cmd = '/bin/command ' . escapeshellcmd($userinput) exec($cmd . ' 2>&1', $output, $return_value); if($return_value != 0) { log("Command failed: $cmd"); log("Reason: " . implode("\n", $output); echo "It failed due to a system problem"; return false; } Curt.To add to what Curt says here, so is assuming the command actuallyexists. :)