Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

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)

  1. 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…
  2. 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…
  3. 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…
  4. 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…
  5. 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…
  6. 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…
  7. 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…
  8. 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…
  9. 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 •…
  10. 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…
  11. 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…
  12. 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…
  13. 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…
  14. 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 —…
  15. 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…
  16. 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…
  17. 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…
  18. 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.…
  19. 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…
  20. 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.…
  21. 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…
  22. 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…
  23. 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,…
  24. 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…
  25. 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…
  26. 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…
  27. 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…
  28. 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…
  29. 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…
  30. 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…
  31. 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…
  32. 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…
  33. 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…
  34. End Term Paper: May-June 2025 — Web Based Programming — End Term Examination May/June 2025
  35. End Term Paper: June 2024 — Web Based Programming — End Term Examination June 2024
  36. 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 SpeedFasterSlower
SecurityLess secureMore secure
Code VisibilityVisible to userHidden from user
Database AccessNot allowedAllowed
Server LoadLowHigh
DependencyBrowser dependentServer 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.

Continue reading: 1. Web Applications & Servers →

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.