Re: whois Domain??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/9/07, Ashley M. Kirchner <ashley@xxxxxxxxxx> wrote:
Curt Zirzow wrote:
> Assuming paths is evil :)
    To add to what Curt says here, so is assuming the command actually
exists.  :)

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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux