I'm running a few PHP web applications that are basically forms to manage a MySQL database content (add, remove and update). Right now I want to be able to insert data programatically, but I've put all of the logic in PHP (no validations on database side) and I want to reuse the PHP logic that I have.
I thought about having a new URI that receives the product parameters in query string, but I only want that that endpoint is available when it's called from inside the server (to avoid external users to call it).
I'm running an Apache Server in Ubuntu 12.04. I hope I explained this well