Page 1 of 1

Access php page on iOS device

Posted: Mon Sep 12, 2011 9:06 am
by hurleyr
HI,

I am new to Runrev so I apologies if this is in the wrong section.

I want to be able to access a remote Database from an iOS App. I will do this using php pages to receive, process and send back the data.

Can anyone tell me if this is possible and where I can find some basic information about passing data to and from the App.

Thanks for the help

Richard

Re: Access php page on iOS device

Posted: Mon Sep 12, 2011 11:45 am
by Jellicle
Sure. Here's what a function to run a .php script looks like:

return url ("http://domain.com/songsapp/listallsongs.php")

You can also post to servers by passing data to html forms.

Sorry, I can't provide links to detailed info on how to do it, but if I can manage to work it out, any one can :)

Gerry

Re: Access php page on iOS device

Posted: Thu Sep 15, 2011 6:33 pm
by hurleyr
Thanks for that.
If I return the data in the form name=smith,score=22,name=jones,score=67 etc
What would be the best way to split this up in Livecode.
Help much appreciated.
Richard

Re: Access php page on iOS device

Posted: Thu Sep 15, 2011 11:08 pm
by Jellicle
Check out the text chunk handling commands in the user guide. It's pretty trivial to manipulate text in LiveCide.

Gerry