UnkwnTech UnkwnTech - 1 year ago 101
PHP Question

Detecting request type in PHP (GET, POST, PUT or DELETE)

How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP?

Answer Source

By using


For more details please see the documentation for the $_SERVER variable.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download