I'm quite new to the iphone Dev. I've been doing some tutorials and going through some books but I want to create an app that can retrieve data (say images for example) from the web (from a database) onto the iphone.
Basically: You need a script server side (php is nice) that take info on your remote database (mysql for example), and give output in xml or json, then you can make a http request with ASIHTTPRequest or NSURLConnection from your iOS app to retrieve the output of the script, and then you can parse it with SBJon (for json) or NSXMLParser (for xml).
Google terms that you don't know
Basically: You need a script server side (php is nice) that take info on your remote database (mysql for example), and give output in xml or json, then you can make a http request with ASIHTTPRequest or NSURLConnection from your iOS app to retrieve the output of the script, and then you can parse it with SBJon (for json) or NSXMLParser (for xml).
Google terms that you don't know
Thanks.
Just to clear things up. There's a whole lot of images stored on a server. I want to make an app that allows the user to download those images onto their iphone.
I understood most of what you said, just confused about the first part.
Quote:
You need a script server side (php is nice) that take info on your remote database (mysql for example) and give output in xml or json
where would this sit in terms of someone running the app and downloading an image?
could you maybe break what you said down into more steps?
We frown on links to pirated stuff around here. If you are too cheap to pay for what you take from the community, then the community isn't going to do too much to help you when you need it.
We frown on links to pirated stuff around here. If you are too cheap to pay for what you take from the community, then the community isn't going to do too much to help you when you need it.
Sorry about that,
I wasn't implying that I am going to download them. just wanted to know which books he recommended.
but i don't know a particular tutorial to do what you want, however are just few things, maybe can be usefull read that WebService [How-To] in particular section 4, 5, 6.
but i don't know a particular tutorial to do what you want, however are just few things, maybe can be usefull read that WebService [How-To] in particular section 4, 5, 6.
Thanks for the links. I've gone through that book.
The link to your other posts were quite confusing. What I'm looking for is something that explains the code.