PHP integration with PHP

I want to make an iPhone application that will send some data to a php website.

What's the best way to do this? Does anyone know how an app like facebook does this? Can I avoid using SSL?

Thank!

+2


source to share


4 answers


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



+1


source


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



+1


source


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

+1


source


You will have PHP code that does all the dirty work (saving data, creating users, searching for products, etc.). The iPhone app just requests PHP files using the various methods mentioned above (NSUrlRequest and friends) and sends data for those requests. In a sense, you will create an API for your PHP web application.

0


source







All Articles