This scirpt is unreliable. It works on wapp but not on Hostgator
Check Network Tab to see if it got the data with the status code 200 or 304
SERVER_PROTOCOL: HTTP/1.1
php_sapi_name(): apache2handler