Klamore74
Klamore74

Reputation: 578

iPhone PHP integration

I want to make an iPhone application that send some data to php web site.

Which is the best way to do it? Someone know how application like facebook do it? I can avoid to use SSL?

Thanks!

Upvotes: 2

Views: 531

Answers (4)

mga
mga

Reputation: 1970

You would have PHP code that does all the dirty work (save data, create users, search products, etc.). The iPhone app would just request PHP files via the different methods mentioned above (NSUrlRequest and friends) and send data to those requests. In a way, you would be creating an API for your web-based PHP application.

Upvotes: 0

NSSec
NSSec

Reputation: 4551

Here is an example using NSUrlRequest: Problem using NSURLRequest to POST data to server

Upvotes: 1

Brian
Brian

Reputation: 8616

I came across this when I was looking into it a while back: http://www.ibm.com/developerworks/xml/library/x-iphonexmlphp/index.html

Upvotes: 1

Paul Dixon
Paul Dixon

Reputation: 300855

Cocoa Touch has HTTP classes such as CFHTTP you can do this with - see this manual section

Upvotes: 1

Related Questions