Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您如何确保在 PHP 请求管道中足够早地动词是 POST 并拒绝其他人?
这应该有效:
if ($_SERVER['REQUEST_METHOD'] != 'POST') die();