Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Mike Zhu
1,840 PointsAsking about how to build an iOS app server.
Basically, I am a student preparing for my final year project, and I plan to build a social network app using iOS platform.
The app will have the functions such as, user log in, sign up, checking users nearby, chatting room.
Now I am familiar with Objective-C, but I am not sure what knowledge should I learn.
Now I am learning PHP, and I am really confused whether it will work.
2 Answers
mikescs
5,018 Pointsit should work...though you should be more specific with your question.
Ricky Catron
13,023 PointsI believe you are asking if you will be able to use PHP to manipulate and store the data sent from your app. If you are then you are correct. What you would do would be something like this:
When the app loads it requests data from they PHP page I assume Objective-C has a library for this.
Then the PHP page will request the data from the database and then it will send that data back out to the app.
The app proccess the data however you told it to.
When the user inputs data which is sent to the PHP page.
The PHP sends it to the database and stores it for later.
CHating may be a little more complicated if you want it to be an instant messenger but that is the basic of how that app could work.