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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -