Web Based Programming — Free Notes & Tutorial
Free Web Based Programming (WBP) notes for BCA — HTML, CSS, JavaScript, PHP, MySQL. YMCA university curriculum at SikshaSarovar. Free Web Based Programming course on SikshaSarovar.
This Web Based Programming course is part of Siksha Sarovar and is 100% free for students in India — no sign-up required to read. It contains 36 structured lessons with examples, and pairs with our free online compiler and AI tutor.
What you will learn
- HTML
- CSS
- JavaScript
- PHP
- MySQL
- Web servers
Course content (36 lessons)
- Unit 1: Overview — Unit 1: Overview of Web Based Programming This unit covers the fundamentals of PHP, including its execution flow, variables, operators, and control structures. Visual Overview…
- 1. Web Applications & Servers — Introduction to Web Applications Web applications are software programs that run on a web server and are accessed through a web browser. They are built using a combination of…
- 2. Local vs Remote Servers — 2. Local Web Server A local web server is installed and run on a local computer. It is mainly used for development, testing, and learning purposes. Characteristics: • Runs on…
- 3. WAMP, LAMP, XAMPP & MAMP — 1. Introduction to Local Server Environments Local server environments allow developers/students to run web applications on their own computer before deploying them to a remote…
- 4. Static vs Dynamic Websites — 1. Static Website Development What is a Static Website? A static website displays fixed content. The same page is shown to all users. Technologies Used: • HTML • CSS • Basic…
- 5. PHP Introduction & Data Types — Introduction to PHP & Data Types PHP (Hypertext Preprocessor) is a powerful server-side scripting language. It is the backbone of many CMS platforms like WordPress and social…
- 6. PHP Variables & Scope — PHP Variables & Scope Variables are "containers" for storing information. In PHP, a variable starts with the $ sign, followed by the name of the variable. Rules for Naming…
- 7. Super Global Variables — PHP Super Global Variables Super Globals are predefined variables in PHP that are always accessible, regardless of scope — you can access them from any function, class, or file…
- 8. Constants & Operators — PHP: Constants, Comments, Operators 1. PHP Constants A constant is an identifier whose value cannot be changed once defined. Features of Constants: • Do not use $ symbol •…
- 9. Control Structures — 2. Conditional Statements (Control Structures) in PHP Conditional statements represent the decision-making process in programming. 2.1 if Statement Executes code if the condition…
- 10. Looping Statements — 3. Looping Statements in PHP Loops are used to execute a block of code repeatedly. 3.1 for Loop Used when the number of iterations is known. 3.2 while Loop Executes code while…
- 11. PHP Arrays — Arrays in PHP: Indexed Array, Associative Array, Multidimensional Array & Predefined Functions 1. Introduction to Arrays in PHP An array is a special variable that can store…
- Unit 1: Important Questions — Important Questions: Unit 1 – PHP Fundamentals Short Answer Questions (2-5 Marks) 1. What is PHP? List its key features. 2. Distinguish between a Static and a Dynamic website with…
- Unit 2: Overview — Unit 2: Functions, Forms, and State Management in PHP Unit 2 builds upon the PHP fundamentals covered in Unit 1 and dives into Functions , Form Handling , and State Management —…
- 1. Functions & Variable Scope — Functions in PHP: Definitions, Scope & Usage Study Deep: Variable Visibility Hierarchy In PHP, variable visibility is strictly managed to prevent accidental data corruption across…
- 2. Advanced Functions & Error Handling — Advanced PHP Functions: Arguments, Recursion, Built-ins & Errors 1. Passing Arguments: By Value vs By Reference When you call a function with arguments, PHP can pass the data in…
- 3. Working with Forms — Handling HTML Forms in PHP: Methods, Controls & Validation Study Deep: Form Security Best Practices When handling forms in a University exam or professional project, security is…
- 4. State Management — State Management in PHP: Concepts, Techniques & Comparison Study Deep: Session Hijacking vs. Session Fixation Understanding session security is vital for any advanced PHP student.…
- Unit 2: Important Questions — Important Questions: Unit 2 – Functions, Forms & State Management Short Answer Questions (2-5 Marks) 1. What is a PHP function? Distinguish between function definition and…
- Unit 3: Overview — Unit 3: File Handling and Object-Oriented Programming (OOP) in PHP Unit 3 elevates PHP programming from simple scripting to structured, professional-grade application development.…
- 1. File Inclusion & Handling — Working with Files in PHP: Inclusion, Modes & Operations Study Deep: The Race Condition ( flock ) When multiple users try to write to the same file simultaneously, data corruption…
- 2. Directories & File Info — Directory Management & File Information in PHP 1. What is a Directory? Definition: A Directory (also called a folder) is a container in a file system used to organize files and…
- 3. Object Oriented Features — Object-Oriented Programming (OOP) in PHP: Core Concepts Study Deep: The S.O.L.I.D. Principles For advanced students, understanding SOLID principles is essential for writing clean,…
- 4. Advanced OOP Features — Advanced OOP: Encapsulation, Inheritance, Interfaces & Traits Study Deep: Late Static Binding ( static:: ) In PHP, the self:: keyword always refers to the class where it is…
- Unit 3: Important Questions — Important Questions: Unit 3 – File Handling & OOP Short Answer Questions (2-5 Marks) 1. What is the difference between include() and require() in PHP? 2. List any four file open…
- Unit 4: Overview — Unit 4: PHP Database Connectivity Unit 4 is the culmination of the WBP course — connecting PHP to a MySQL database . All modern web applications (e-commerce, social media, banking…
- 1. Databases & SQL — Introduction to Databases and SQL: Concepts, RDBMS & SQL Commands Study Deep: The ACID Properties In any database transaction, four properties (ACID) must be maintained to ensure…
- 2. PHP Database APIs — Connecting PHP to MySQL: APIs, Drivers & Extensions 1. What is a Database API? API (Application Programming Interface): A set of rules and protocols that allows one software…
- 3. Creating Database & Tables — Creating Databases and Tables in MySQL via PHP 1. SQL Data Types — Choosing the Right Type When designing a table, choosing the correct data type for each column is critical. It…
- 4. Insert, Update & Delete — Database CRUD Operations: INSERT, UPDATE & DELETE Study Deep: Preventing SQL Injection SQL Injection is one of the most common web vulnerabilities. It occurs when malicious SQL…
- 5. Querying Database — Fetching Data from MySQL in PHP: SELECT, Filters & Error Handling Study Deep: Implementing Pagination When a table has thousands of records, you shouldn't display them all at…
- Unit 4: Important Questions — Important Questions: Unit 4 – PHP Database Connectivity Short Answer Questions (2-5 Marks) 1. What is a Database? Differentiate between DBMS and RDBMS. 2. What is MySQL? Why is it…
- WBP Question Bank — WBP Question (Unit 1 & 2) Part A – Very Short Questions (10) 1. What is Web Based Programming? 2. What is PHP? 3. Write the full form of PHP. 4. What is a web server? 5. What is…
- End Term Paper: May-June 2025 — Web Based Programming — End Term Examination May/June 2025
- End Term Paper: June 2024 — Web Based Programming — End Term Examination June 2024
- End Term Paper: July 2023 — Web Based Programming — End Term Examination July 2023
1. Web Applications & Servers
Introduction to Web Applications
Web applications are software programs that run on a web server and are accessed through a web browser. They are built using a combination of HTML, CSS, and JavaScript, and can be used for a variety of purposes, such as e-commerce, social networking, and content management.
| Processing Speed | Faster | Slower |
|---|---|---|
| Security | Less secure | More secure |
| Code Visibility | Visible to user | Hidden from user |
| Database Access | Not allowed | Allowed |
| Server Load | Low | High |
| Dependency | Browser dependent | Server dependent |
4. Example
Server Side (PHP):
<?php
echo "Welcome to Web Programming";
?>
Web Servers: Local Servers and Remote Servers
1. What is a Web Server?
A web server is a system (software or hardware) that stores, processes, and delivers web pages to users over the internet using HTTP/HTTPS protocols.
A web server responds to requests from a web browser and sends back web content such as HTML pages, images, and data.
Frequently asked questions
Is the Web Based Programming course really free?
Yes. The entire Web Based Programming course on Siksha Sarovar is free to read with no account required. You can optionally sign in with Google to save your progress.
Do I get a certificate for Web Based Programming?
Yes — finish the lessons and pass the quiz to earn a free, verifiable certificate you can share on LinkedIn or with recruiters.
Can I run code while learning?
Yes. The built-in online compiler runs C, C++, Python, Java, PHP, JavaScript, C# and SQL directly in your browser — no installation needed.