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 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.