Search
 
SCRIPT & CODE EXAMPLE
 

PHP

check if ajax request php

if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
	/* special ajax here */
	die($content);
}
Comment

PREVIOUS NEXT
Code Example
Php :: php convert date and time to iso 8601 
Php :: laravel route list 
Php :: laravel get current domain 
Php :: php what type of variable is it 
Php :: zsh: command not found: laravel 
Php :: php filter only numbers 
Php :: debug graphql wordpress 
Php :: composer install without dependencies 
Php :: content-type application/json php 
Php :: ERROR 1071 (42000) at line 76: Specified key was too long; max key length is 767 bytes laravel 
Php :: smarty prestashop get language 
Php :: session unset 
Php :: enablequerylog laravel 
Php :: pull information from another website 
Php :: laravel table data types 
Php :: wp get post content by id 
Php :: composer update without dependencies 
Php :: wp mail 
Php :: twig if else 
Php :: how get last item in foreach in laravel 
Php :: how to check if a string contains a substring in php 
Php :: laravel carbon today date format 
Php :: symlink in php 
Php :: start server symfony command 
Php :: importing current year in laravel blade 
Php :: how to open server in php 
Php :: htaccess set php memory limit 
Php :: for php 
Php :: laravel migration change column name 
Php :: string to double php 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =