i've been learning php online, couldn't find clear complete resource on matter.
i understand how perform following in php, using standard , modern way:
- read received payload data of request (whether post or get).
- set payload text of response.
- read request headers.
- set response headers.
- issue requests.
i know globals such $_get , $_post. there classes such httpresponse , httprequest.
it seems there various different ways handle http communication php. please explain standard, common or modern way handle php.
as mentioned, can read request data using super globals $_get and/or $_post.
the request header can read using getallheaders.
to send response header, use header function.
to send response body, use common output methods echo etc.
Comments
Post a Comment