Generation

generate functionMon, 06 Feb 2023

Write a php function that only show its content from an ajax request by local site

if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { // do something }

Questions about programming?Chat with your personal AI assistant