Re: [PHP] checking for utilities/applications in the PATH

2004-08-25 Thread Michal Migurski
> i am trying to do a simple check for archiving utilities (zip, unzip, > ...), to make sure they exist within the PATH, and are executable by > PHP. > > i could not find a better way to do this through php, so i went ahead > and did an > > exec('which ' . $utility, $output, $return_value); > > the

[PHP] checking for utilities/applications in the PATH

2004-08-25 Thread Chris Wagner
hi, i am trying to do a simple check for archiving utilities (zip, unzip, ...), to make sure they exist within the PATH, and are executable by PHP. i could not find a better way to do this through php, so i went ahead and did an exec('which ' . $utility, $output, $return_value); then, i check t