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 -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -