차근차근/PHP

java데이터 php에서 받기?

예쁜꽃이피었으면 2014. 12. 2. 11:14

http://codepad.org/lH1uYDyg



<?php

function match($file1) {
	exec("./leaf_recog $file1", $result);
	return $result;
}

	//시작
	$fileName = $_REQUEST['fileName']; // 필요
	//httpuoloader.java에 json이 보냄?
	$r = match("upload/$fileName");
	
	echo urldecode(json_encode($r));
	

?>



Output:

Disallowed system call: SYS_pipe


반응형

'차근차근 > PHP' 카테고리의 다른 글

[PHP] php exec() 함수 사용시 에러 출력  (0) 2014.09.05
popen PHP 명령어 사용 질문  (0) 2014.09.05
popen()과 exec() : 명령 실행  (0) 2014.09.05
[PHP] php.ini의 위치  (0) 2014.09.04
php.ini 설정하기  (0) 2014.09.04