Raspberry Pi_Kor_24.4.10 PHP 전송방식 및 주요 Global 변수

24.4.10 PHP 전송방식 및 주요 Global 변수

24.4.10.1 HTTP의 POST/GET 방식과 PHP에서의 처리

web browser가 web server를 호출하여 필요한 자료를 전송할 때는 GET 방식과 POST 방식을 사용할 수 있다.

● GET 방식

GET 방식은 전송자료를 URL 형식으로 구성하여 다음과 같은 형식으로 요청을 보낸다.

Raspberry Pi_Eng_24.4.10 Transmission Methods of PHP and Key Global Variable

24.4.10 Transmission Methods of PHP and Key Global Variable

24.4.10.1 POST/GET Method of HTTP and PHP Processing

GET method and POST method can be used when a web browser calls the web server and send the necessary data.

● GET method