php - From GET queries to WebSockets -
My program is getting an array of data using GET requests. I have to type it again for the use of webcats.
if ($ _ server ['REQUEST_METHOD'] === 'GET') {header ('content-type: text / html; charset = UTF-8'); If (! Array_key_exists ('method', $ _GET) ||! Array_key_exists ('Login', $ _GET)) Dead (""); $ Params = Bar ($ _ GET); Switch ($ params ['method']) {case 'method1': {// ...} case 'method2': {// ...} case 'method3': {// ...}}} < / <>
Comments
Post a Comment