Archive for March, 2013

How to running Chrome with –allow-file-access-from-files ( Same origin policy )

by on Tuesday, March 26th, 2013

Close all your chrome browser.

Run this cmd:

C:\Users\admin\AppData\Local\Google\Chrome\Application>chrome --allow-file-access-from-files --disable-web-security

then use chrome for accessing webservices,

PHP xml to array

by on Wednesday, March 6th, 2013

 $xml = simplexml_load_string($data);
 $json = json_encode($xml);
 $response = json_decode($json,TRUE);
 print_r($response);exit;