I have some problem in finding a jQuery AJAX request on a Lighttpd
web server with PHP Is happening Here is the following code (works fine on MAMP and Apache):
if (isset ($ _ server ['HTTP_X_REQUESTED_WITH']) & amp; amp; and strogler ($ _ server [ 'HTTP_X_REQUESTED_WITH'] = = 'Xmlhttprequest') {// ajax (not recognized on lighttpd server) echo json_encode (array ('success' => 1)); } Else {// not ajax}
I thought that there is probably a fixed lighttpd configuration that is not set correctly, but I did not get any validity. Experiencing a problem?
Thank you!
Perhaps you can attach another variable to the AJAX request query. Then instead of testing $ _SERVER var, you can only test $$$$$$$ for only AJAX.
Can you share any jQuery code?
Comments
Post a Comment