I had a simple php script as backend for my mobile app, There is an index.php and api.php , requests were sent to index.php, then index.php was sending a post request to api.php through cURL ( post request to https:///www.samplewebsite.com/service/api.php ) and printing the result from that.
Now the problem is, I had to change permissions for api.php, and it cannot be accessed via url. is there anyway to send post data to it without url? index.php and api.php are in same folder.
api.php is the php crud class (https://github.com/mevdschee/php-crud-api) it's kinda complicated class, so i didn't find it easy to modify it. I thought it might be better to not to touch that file, instead finding someway to send post requests with that.