PHP exec()

Jmnote (토론 | 기여)님의 2021년 11월 8일 (월) 17:01 판 (→‎개요)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

PHP exec()
PHP
Copy
echo exec('cat /etc/os-release | head -2');
Loading
PHP
Copy
exec('cat /etc/os-release | head -2', $result);
print_r($result);
Loading
PHP
Copy
function execute($command) {
	exec($command, $result);
	return implode("\n", $result);
}
echo execute('cat /etc/os-release | head -2');
Loading

2 같이 보기[ | ]