php - Why does calling drush command by system() fail? -


i have drupal 7 site on iis 7.5 server.

inside iis services manager choose user administrator rights in anonymous authentication settings.

i'm sure drush command in evn path. when logged user (win7) can call command everywhere.

however when try launch command inside drupal module:

  $output = array();   $res = exec('drush --version', $output, $retval); 

$retval 1 (error), $output , $res empty.

different command (sqlcmd) works ok. both commands has identical rights (file system)

what doing wrong here?

using absolute paths solves issue, paths without spaces.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -