Questions about exchanging between ios-php-mysql!

Asked 2 years ago, Updated 2 years ago, 44 views

Hello, I have a question!

No difference

To make sure that what I know about the exchange between ios-php-mysql is correct

Here's the question!

The way I know right now is

Post it on php in the form of a string in ios.

php stores the received string in mysql.

Get mysql's information from php when you receive it

If you float it in the form of json and scratch it from the ios,

I know that ios changes the scratch json to a string and puts it on the screen!

At this time,

1) Is it right to send it by string when sending it from Ios? Should I send it after converting it to json?

Or is the way I know it wrong?

1-1) When you send Android, do you send it by string?

2) Also, does it not affect the performance if we exchange it like this?

3) If there is a lot of access to db, what should I do to improve performance and where can I learn how to do it?

4) Is there any place or book I can learn about data exchange between android, ios - php - mysql?

I'm so sorry that there are so many questions.

Please answer me!

I wish you all the best in the future!

Thank you!

ios php mysql

2022-09-22 21:09

1 Answers

When communicating between a server and a mobile app such as Android/iOS, you usually decide in advance how to send and receive. This is called API. As you said, the most common case is to send and receive strings, and the strings are often sent according to the JSON format.

I don't think Android/iOS need to use APIs for the same function.

For now, we recommend that you focus on implementing the feature first rather than thinking about performance. I think it would be better to think about improving performance when there are more users.

After learning PHP server development and iOS app development separately, you can make what you want by combining what you have learned.


2022-09-22 21:09

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.