Enable Basic Authentication For RESTful Web-service

Learn how to enable Basic Authentication for your RESTful web-service

In the last post, I had posted about how to create a RESTful web service using PHP & MySQL. In this post, I will show you how you can secure the same API using Basic Authentication. With Basic Authentication, you'll be able to add or retrieve your To-Do's only after entering valid credentials. Please not that these steps are based on Apache/2.4.34running on macOS Mojave 10.14.5. Depending on your OS, your steps might vary slightly. [Read More]

Create a REST API Using PHP & MySQL

Learn how to create a RESTful web-service with PHP & MySQL in less than five minutes

I am writing this tutorial to show you how to create a a RESTful web-service with PHP 7 & MySQL 8 in a very short time. You can think of this post as a primer. I'll try to explain the core topics as much as possible while avoiding generic things. Please note that mysql extension for PHP has been completely discontinued in PHP 7. That is why you can only use mysqli extension. [Read More]