Knowledge Base
< All Topics
Print

Question & Answer

Frontend – HTML5, CSS3, Bootstrap

Why did you use HTML5?

A: HTML5 provides semantic elements, better support for multimedia (audio/video), and improves code readability and structure.

 How does Bootstrap help in your project?

A: Bootstrap simplifies responsive design with prebuilt components and a mobile-first grid system, helping me design interfaces faster.

Backend – PHP 8.1 and MySQL

 What is PHP and why did you choose PHP 8.1?

A: PHP is a server-side scripting language for web development. I used PHP 8.1 because it has better performance, error handling (via match, nullsafe, readonly), and improved security.

What database did you use? Why MySQL?

A: I used MySQL because it’s open-source, well-integrated with PHP, and suitable for managing relational data with scalability and reliability.

How do you connect PHP with MySQL?

A: Using mysqli_connect() or PDO (PHP Data Objects). Example:

Control End – AngularJS

Why did you use AngularJS?

A: AngularJS supports two-way data binding, dynamic content rendering, and improves user experience through single-page app behavior.

Q10: How do you fetch data using AngularJS from PHP?

A: Using $http service to make a GET or POST request:

Project Deployment & Tools

What is XAMPP and why did you use it?

A: XAMPP is a local server stack with Apache, MySQL, and PHP. I used it to test and run my PHP project locally.

 Which editor did you use and why?

A: I used VS Code because it supports PHP, HTML, AngularJS, and has helpful extensions like live server and debugger.

What is a REST API and how did you use it in your PHP project?

A:

A REST API (Representational State Transfer) is a set of web service principles that allows communication between a client and server using HTTP methods like GET, POST, PUT, DELETE. In my PHP project, I used REST APIs to allow AngularJS (frontend) to communicate with PHP (backend) by sending and receiving data in JSON format.

For example, a PHP file (fetchData.php) might return data like this:

 
Table of Contents