You pretty much have the idea @ben. I had a lengthy skype chat with Nevil so have a bit of an understanding of what he wants to achieve.
He has a backend ordering management / time management system for his company. It is already working from a bunch of custom built php files that were created for him previously, all he would like to do, is recreate what is already working but from within Wappler so he can make it prettier and maybe later on add some functionality.
It all starts off with a simple table which he has working in wappler, this table basically has a single input of quantity and an order button for every product.
The user enters a quantity and hits the order button, which then needs to send the quantity and product SKU to an external API called MRPEasy.
For this he is trying to use the Server Side API Component, which he is running into some issues using, and this is probably where the focus should really be. It is not really getting the schema as it should, and he needs to get the response from the API to use in a second operation.
This whole question about running a custom PHP script is just because he already has a custom built PHP script called SqltoWOPO.php from his previous system that can interact with the MRPEasy API and is known to work for his needs.
I have suggested he ignore this custom PHP file and focus on getting it to work directly in Wappler. Because I have not had a chance to really become an expert on the Server Side API myself I can not really assist him properly, so I suggested that he give me a little time to become more familiar with the Server Side API and then I will probably be able to help him much more effectively.
In the meantime while he waits for me, he is trying to continue, but still along the course of running the custom script onclick of the Order button, which I said to him I am uncertain of if or how to make that work and maybe to ask the question and see if @Teodor might know, if he could make a custom php script run using the onclick event on a button.
Anyway I hope this clarifies a little of what he is trying to do.