I am trying to find out how to create an app in PHP with which I could receive a file from the network and save on my machine. To give the context, this file is sent to my web server (which is set up) from an iPhone app that I developed. I know nothing about PHP, and would appreciate any guidance on how to go about doing that.
To reiterate – all I need is an app that will receive this file and save it on my computer.
Simply POST the file to your script, and you will be able to find its information in the
$_FILESsuper-global variable.http://php.net/manual/en/reserved.variables.files.php
Also, keep in mind that dealing with files can be dangerous if you aren’t careful. You should read up on the security implications before putting files in random places. Avoid putting them in the web root for sure.