I found a lot of code on the Internet for PHP to receive data and files sent by the client. I will summarize it today. First, use XAMPP (Integrated Server Development and Installation Package) locally. ps: It’s very silly. Just keep going to the next step. It’s also special. Powerful! Then write the PHP code, receive the request from the client iOS, and process it accordingly! (Realize the whole process of interaction between the front desk and the background) Ah, you will find it very tiring if you do it all by yourself!!! Without further ado, let’s get started. Let’s do it!
1. Install local server (XAMPP)
Give me a MAC version of XAMPP installation package and plant one! http://pan.baidu.com/s/1gecDFAb1. Double-click to run the .dmg Installation package
2. Double-click
If you encounter an error, please refer to: http://www.cnblogs.com/lidongxu/p/5256351.html
The wait is short!!!
// ps: For this page, you can enter localhost or 127.0.0 in the address bar. 1 is accessible!
At this point, our XAMPP installation is basically completed. You can open Launchpad to see XAMPP
In the application, find the XAMPP folder, and you can also see the XAMPP installation. , manager-osx is the startup icon, and uninstall is the anti-installation program, that is, run it to uninstall (remember)
You can switch the software label in the above picture to -> Manage Servers , make sure the 3 options are all in Running status, click Start All directly (when you want to use XAMPP)
Make sure they are all in Running status!
The above introduces [PHP] using XAMPP to build a local server, and then using the iOS client to upload data to the local server. Install XAMPP, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.