Software Archive
Read-only legacy content
17060 Discussions

Problem php script

Peter_N_
Beginner
1,200 Views

Good day. I do not speak English very well. I have problems with PHP scripts. Via Google Chrome as a web page works ok. In the application not working. Can you help me?490213

0 Kudos
2 Replies
Peter_N_
Beginner
1,200 Views

writes code: status;
    if($status=="OK"){
        //Get address from json data
        $location = $data->results[0]->formatted_address;
    }else{
        $location =  '';
    }
    //Print address 
    echo $location;
}
?>

0 Kudos
PaulF_IntelCorp
Employee
1,200 Views

You cannot use PHP inside your Cordova app (the Intel XDK creates Cordova apps). See item #2 in this blog for some background > http://blogs.intel.com/evangelists/2015/12/31/five-useful-tips-on-getting-started-building-cordova-mobile-apps-with-the-intel-xdk

0 Kudos
Reply