I am trying to built a web framework (school project), the framework has to be API-oriented, and I will built the web app on an API-centric architecture, using PHP :
How do I make request to my API located on the same server ? I am afraid that making HTTP request with curl on the same server would be too heavy, what is the other alternative ?
Thanks
Best way to to call internal api is using local ip address. so if your url is http://example.com/getdata.php then you can use http://127.0.0.1/getdata.php
Hope this will help your
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With