I’m new to all of this, but– I recently installed XAMPP on my PC and locally hosted a server there. It utilizes POST requests which are handled by PHP scripts on my PC, including allowing others to connect and upload images to a folder, or clear the uploads. This is all working great.
However, I then had the thought that it would be handy to be able to host from my iPhone instead, if that were possible, so that it would always be with me.
I’ve downloaded the iSH app and gotten a server running from my iPhone, and the webpage itself (html, css and js) loads and works as intended. However, none of the POST functionality works, apparently because my .php files can’t be executed by my iPhone. So my question is, is there another language that I can use to re-write my PHP functions in to handle POST requests and interact with files (create, write, delete)* on the iPhone?
*I’m talking about files in the ‘files -> iSH -> root’ folder here, not the photos app or anything like that.
Thanks in advance!
Jason Jennings is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.