"PHP 함수 shell command()"의 두 판 사이의 차이

(새 문서: ;PHP 함수 shell command ==소스 코드== <source lang='PHP'> function shell_command( $command ) { exec( $command, $output ); return implode("\n", $output ); } </source> 분...)
 
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(다른 사용자 한 명의 중간 판 3개는 보이지 않습니다)
2번째 줄: 2번째 줄:


==소스 코드==
==소스 코드==
<source lang='PHP'>
<syntaxhighlight lang='PHP'>
function shell_command( $command ) {
function shell_command( $command ) {
exec( $command, $output );
exec( $command, $output );
return implode("\n", $output );
return implode("\n", $output );
}
}
</source>
</syntaxhighlight>
 
==같이 보기==
*[[PHP exec()]]


[[분류: jmphp]]
[[분류: jmphp]]

2020년 11월 2일 (월) 02:56 기준 최신판

PHP 함수 shell command

1 소스 코드[ | ]

function shell_command( $command ) {
	exec( $command, $output );
	return implode("\n", $output );
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}