I'm using the sample API from Indeed (Note, removed publisher ID): http://api.indeed.com/ads/apisearch?publisher=ID&q=java&l=austin%2C+tx&sort=&radius=&st=&jt=&start=&limit=&fromage=&filter=&latlong=1&co=us&chnl=&userip=1.2.3.4&useragent=Mozilla/%2F4.0%28Firefox%29&v=2
It works on localhost using simplexml_load_file. But returns false when I test it on live server. What's wrong?
This is their API doc: https://ads.indeed.com/jobroll/xmlfeed
ini_set('allow_url_fopen ','ON'); $xml = simplexml_load_file("http://api.indeed.com/ads/apisearch?publisher=ID&q=java&l=austin%2C+tx&sort=&radius=&st=&jt=&start=&limit=&fromage=&filter=&latlong=1&co=us&chnl=&userip=1.2.3.4&useragent=Mozilla/%2F4.0%28Firefox%29&v=2"); var_dump($xml);