Simply in the PHP file, add the bit of code.
header('Access-Control-Allow-Origin: *');
As soon as the device which does the Ajax request (PC:browser or mobile:app) does not have the same IP as the server serving the PHP file, then its cross domain.
generally adding the above code to your php file eliminates all cross domain issues.