Created
December 17, 2024 08:58
-
-
Save shohag-cse-knu/b9fac00acaa20530969e247c98465d4e to your computer and use it in GitHub Desktop.
AJAX request is being checked from PHP script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//only ajax request can connect this file | |
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest') | |
{ | |
//CODE HERE | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment