| 
 
update : 2015.11.03
 
php.shukuma.com검색:
  
 | 
exec(PHP 4, PHP 5, PHP 7) exec — Execute an external program 설명
   string exec
    ( string  
  $command
   [, array &$output
   [, int &$return_var
  ]] )
   exec() executes the given
    인수
 
 반환값The last line from the result of the command. If you need to execute a command and have all the data from the command passed directly back without any interference, use the passthru() function. 
   To get the output of the executed command, be sure to set and use the
    예제
 Example #1 An exec() example 
<?php주의Warning 
  사용자가 입력한 데이터를 이 함수로 넘길 때는, escapeshellarg()나 escapeshellcmd()를 이용하여, 사용자가 위험한 명령을 실행하는 조작을 하지 못하게 해야 합니다. 
 
 Warning 
 안전 모드에서 명령어는 escapeshellcmd()로 회피처리됩니다. 그러므로, echo y | echo x는 echo y \| echo x가 됩니다. 참고
 
  |