Detect ajax request in php