Search
 
SCRIPT & CODE EXAMPLE
 

PHP

set only allow post request to a page - php

//only allow post request
if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
	header('Allow: POST');
	header('HTTP/1.1 405 Method Not Allowed');
	header('Content-Type: text/plain');
	echo "only allow post";
	exit;
}
Comment

PREVIOUS NEXT
Code Example
Php :: laravel the requested url was not found on this server 
Php :: create excel file using php] 
Php :: one lin if statement php 
Php :: php include external directory path 
Php :: php null 
Php :: how to clear php form data after submit 
Php :: return only one column data from table in codeigniter 
Php :: how to check the day of any date in php 
Php :: $loop laravel list 
Php :: how to upgrade php in mac mojave 
Php :: get specific word from string php 
Php :: seprate day and year from laravel to timestamp 
Php :: php self referencing form 
Php :: add object in array php 
Php :: access json with php 
Php :: laravel validation types 
Php :: symfony messenger route 
Php :: wp php get rows number from mysql 
Php :: get field object acf 
Php :: violation: 1071 Specified key was too long; max key length is 1000 bytes 
Php :: php combine 2 arrays keep duplicates 
Php :: Method IlluminateSupportCollection::links does not exist. 
Php :: php parse query string 
Php :: preg_replace allow spaces 
Php :: how to free session variable in php codeigniter 
Php :: laravel packages 
Php :: Download any version of xampp 
Php :: publish spatie 
Php :: Get All dates of a month with laravel carbon 
Php :: how to install apache mysql php on ubuntu 18.04 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =