PUNJAB COLLEGE OF TECHNICAL EDUCATION
COURSE: BCA
SUBJECT NAME: Programming in PHP LAB
SUBJECT CODE: UGCA-1930
SEMESTER: 5th
CREDIT: 2
TOTAL LECTURE COUNT: 22
COURSE INSTRUCTOR: Ms Pratiksha
EMAIL ADDRESS: pratikshabagga@[Link]
COURSE OBJECTIVES
Faculty of Computer Applications Page 1
PUNJAB COLLEGE OF TECHNICAL EDUCATION
● Build a strong foundation in PHP programming fundamentals.
● Develop logical thinking and problem-solving skills.
● Write PHP code using variables, data types, control structures, functions, arrays, strings, and file
handling.
● Understand memory management, debugging, and basic data structures.
● Apply coding standards to develop efficient, real-world applications.
● Recognize ethical and legal aspects of software development.
COURSE OUTCOMES
After studying this course, the student will be able to:
CO1 Outline the importance and benefits of PHP
CO2 Compare Client Side Script & Server Side Script.
CO3 Explain the use of control structures, data types used in PHP.
CO4 Implement database connectivity.
CO1 Outline the importance and benefits of PHP
Faculty of Computer Applications Page 2
PUNJAB COLLEGE OF TECHNICAL EDUCATION
LIST OF PRACTICALS:
Take values from the user and compute sum, subtraction, multiplication, division and
1 exponent of value of the variables.
Write a program to find the area of following shapes: circle, rectangle, triangle,
2 square, trapezoid and parallelogram.
3 Compute and print roots of quadratic equation.
4 Write a program to determine whether a triangle is isosceles or not?
5 Print multiplication table of a number input by the user.
6 Calculate sum of natural numbers from one to n number.
7 Print Fibonacci series up to n numbers e.g. 0 1 1 2 3 5 8 13 21…..n
8 Write a program to find the factorial of any number.
9 Determine prime numbers within a specific range.
10 Write a program to compute, the Average and Grade of students marks.
11 Compute addition, subtraction and multiplication of a matrix.
12 Count total number of vowels in a word “Develop & Empower Individuals”.
13 Determine whether a string is palindrome or not?
Faculty of Computer Applications Page 3
PUNJAB COLLEGE OF TECHNICAL EDUCATION
14 Display word after Sorting in alphabetical order.
15 Check whether a number is in a given range using functions.
Write a program that accepts a string and calculates the number of upper case letters
16 and lower case letters available in that string.
17 Design a program to reverse a string word by word.
Write a program to create a login form. On submitting the form, the user should
18 navigate to profile page.
19 Design the front page of a college or department using a graphics method.
20 Write a program to upload and download files.
21. WRITE A PROGRAM to find whether the given number is a prime number.
Tools Needed:
● Language: PHP
● Database: MySQL (phpMyAdmin/XAMPP)
● UI: HTML, CSS, Bootstrap (optional)
● Extra Tools: PHPMailer, JavaScript, AJAX for live updates
EVALUATION CRITERIA:
PARAMETER INTERNAL(Weightage)
MARKS
MSE-1 30 9
MSE -2 30 9
Project 20 4
Attendance 4
Faculty of Computer Applications Page 4
PUNJAB COLLEGE OF TECHNICAL EDUCATION
Lab Tasks & Viva 20 3
100
Total 30
ATTENDANCE CRITERIA:
PERCENTAGE MARKS
95 Above 4
91-95 3
86-90 2
81-85 1
76-80 2
75 Below 0
Note:
1. There will be NO REMAKE of the Mid-Semester Examination. Remake of Mid Semester
Examination will be held only if the genuine Medical leave is duly approved by the Principal.
2. It is compulsory to appear in both MSE-1 and MSE-2.
3. It is compulsory for all the students to have 75% attendance in each subject at the end of the
semester failing which the student will not be allowed to write the final exam.
CLASSROOM POLICIES:
1. Be punctual for the class, try to minimize your disturbance if you are late. I may not reject
Faculty of Computer Applications Page 5
PUNJAB COLLEGE OF TECHNICAL EDUCATION
students who come after 5 minutes from the scheduled time but without attendance.
2. During lecture delivery, if you have any kind of query, just raise your hand. Queries are
important for the understanding of the concepts. So, do ask queries but make sure they are
relevant to the subject.
3. Be disciplined in the classroom and don’t make any noise while we are studying.
STUDENT CONDUCT:
1. Students will be sent a class calendar in advance and all parameters like (Tests/Tasks/Project
submission etc) and dates will be strictly followed.
2. Remake of MSE’s will be possible only in case of hospitalization or illness duly approved by
doctor and medical leave signed by the Class In charge and sanctioned by the Principal.
3. Students are encouraged to discuss concepts and share ideas, but identical assignments and
copying will not be tolerated. In case any student(s) is/are found copying in any evaluation
parameter, then the student(s) will get Internal Reappear in that subject.
4. Assignment Completion: All practical tasks/assignments must be submitted in originality
within deadlines.
5. You can always refer to STUDENTS RULE BOOK which will be mailed at your class
googlegroup in advance. Feel free to contact your Class In-Charge or me in case of any
queries.
6. please keep track of your attendance & performance, which will be regularly mailed at your
class googlegroup.
7. All official communication will be carried through your class googlegroup. While replying to
any mail, please ensure that you reply only to the sender instead of replying at the class
googlegroup.
8. In case of any problem faced by you, please feel free to contact me at punita@[Link]
Faculty of Computer Applications Page 6
PUNJAB COLLEGE OF TECHNICAL EDUCATION
PROJECT PHASE GRID:
Some topics will be assigned to students who have their own business or are associated with
a family or friend's business.
PHASE REQUIREMENTS MARK’S INTERNAL WEIGHTAGE
PHASE 1 Allocation of Topics and Brief 5 1
Discussion on Website Layout,
Modules, Navigation Bar, and
Backend
PHASE 2 Completion of Webpage 5 1
Frontend
FINAL Complete Submission of the 10 2
PHASE Project with Working Website
(Frontend and Backend).
TOTAL 20 4
Failure to submit any phase on time will result in a deduction of 1 mark for each day past the
deadline.
PROJECT TOPICS:
Project Topic Description
Farmers' online selling app using e-digital marketing for crop and product
Agri Shop sales.
Aptitude Website for A platform offering aptitude tests and resources to prepare for interviews.
Faculty of Computer Applications Page 7
PUNJAB COLLEGE OF TECHNICAL EDUCATION
Interview
Bike and Car Service Web application to manage vehicle service bookings, status tracking, and
Management invoices.
Blood Bank System Real-time availability system between donors and acceptors.
Catering System Online platform for catering reservation and food ordering.
Clinic Management System Web app for patient records, appointments, and doctor schedules.
Doctor Appointment Booking Online system to book and manage doctor appointments.
eBus Geo Location System Shows real-time bus location using GPS for route tracking.
Old Book Store (eCommerce) Platform for selling and exchanging old books online.
General-purpose eCommerce website for product browsing and
Online Shopping Website purchases.
Skill development and learning-based website with courses and
eLearning Website certifications.
eRestaurant System Online food ordering and restaurant menu browsing platform.
Food Selling Platform Local entrepreneur platform to sell homemade or local food online.
Health Diet Search System Suggests diet plans based on health goals through a searchable platform.
Manages doctor appointments, prescriptions, and medical history via QR
Hospital Management System cards.
I-Tour Website Tourism-focused website showcasing city attractions, hotels, and guides.
iSports Website Platform for managing and promoting sports events and registrations.
Smart Garbage Management Location-based garbage pickup scheduling and tracking for smart cities.
Online Movie Booking Web application for real-time movie ticket booking and seat selection.
Three modules for Retailer, Distributor, and Stockiest with inventory,
Online Smart Business billing, and supply chain integration.
Online Vehicle Rental System for renting bikes and cars with booking and payment features.
PCTE Bus Pass Management College bus pass issuing, renewal, and verification system.
PCTE Inventory Management Web platform for managing inventory of college labs and departments.
PCTE Library Management Library system for book issuing, returning, and catalog management.
PCTE Seminar Hall /
Crimson Hall Booking Online system to book seminar halls with calendar and admin approval.
RTO Management System Manages driving license, learner's license, and ownership transfer online.
Veterinary Care Website Platform for booking pet care services, doctor consultations, and
Faculty of Computer Applications Page 8
PUNJAB COLLEGE OF TECHNICAL EDUCATION
vaccination schedules.
Alumni Tracking and System to connect alumni, share achievements, and offer mentorship to
Networking Portal current students.
Students from different colleges can plan inter-college events, share
Event Collaboration Platform resources, and communicate.
Lab Task Topics:
S.N
LAB TASK Description
o
Amazon - User Create user authentication with session, login, logout, password reset,
1
Registration/Login Using PHP and MySql.
Display products by category with sorting, pagination, and image
2 Amazon - Product Listing Page
thumbnails.
Build add-to-cart, update, remove, quantity adjustment with total
3 Amazon - Cart System
amount calculation.
4 Amazon - Checkout Page Show cart summary, address entry, and "Place Order" functionality.
Logged-in users can view past orders, with date, status, and invoice
5 Amazon - Order History Page
download.
Amazon - Product Rating &
6 Users can leave star ratings and write reviews on purchased products.
Review
Amazon - Admin Product Admin panel to add/edit/delete products, prices, categories, and
7
Manager images.
Amazon - Order Processing
8 Admin updates orders (Pending, Shipped, Delivered, Cancelled).
(Admin)
9 Amazon - Offer Management Admin applies discounts/offers on selected products.
10 Amazon - Search with Filters Build product search with price range, brand, and rating filters.
11 Facebook - User Profile Page Users can edit and view their profile picture, bio, and personal info.
12 Facebook - Friends System Create add friend, accept, decline, remove friend functionality.
Faculty of Computer Applications Page 9
PUNJAB COLLEGE OF TECHNICAL EDUCATION
S.N
LAB TASK Description
o
13 Facebook - News Feed Display posts by friends in chronological order with likes/comments.
Facebook - Comment & Like
14 Add like/dislike buttons and threaded comments for each post.
System
Allow users to create posts with text and image upload using PHP file
15 Facebook - Post Creation
handling.
Facebook - Notifications
16 Display friend requests, post likes, comments as notifications.
Module
Instagram - Photo Feed with
17 Users can post photos; others can like it. Build a scrolling photo feed.
Likes
Instagram - Follow/Unfollow Allow users to follow/unfollow other users. Show followers/following
18
Users count.
Instagram - Stories (Image
19 Upload story image that automatically expires after 24 hours.
Expiry 24hr)
Instagram - Comments on
20 Build Instagram-like comment UI and database structure.
Posts
Instagram - Image Upload
21 Upload an image with a caption and display it in a user feed.
with Caption
LinkedIn - User Resume Users fill in education, skills, experience; generate downloadable
22
Builder resumes (PDF).
Admin can post job openings with title, description, salary, and
23 LinkedIn - Job Posting (Admin)
deadlines.
24 LinkedIn - Job Apply System Registered users can apply for jobs and view their application status.
25 LinkedIn - User Connections Build "Connect" feature to link users (similar to add friend).
LinkedIn - Skill Endorsement
26 Users can endorse others’ skills; display number of endorsements.
System
27 YouTube - Video Upload Upload and stream videos using PHP file handling (basic MP4
Faculty of Computer Applications Page 10
PUNJAB COLLEGE OF TECHNICAL EDUCATION
S.N
LAB TASK Description
o
Module support).
28 YouTube - Video Comments Comment section under video with timestamps.
YouTube - Like/Dislike for
29 Add upvote/downvote system for video posts.
Video
YouTube - Playlist
30 Users create playlists and add/remove videos from them.
Management
YouTube - Channel
31 Subscribe/unsubscribe to video channels and count subscribers.
Subscription System
32 Swiggy - Restaurant Listing List restaurants by city with ratings, delivery time, and categories.
33 Swiggy - Online Food Menu Dynamic food items menu with add-to-cart functionality.
Swiggy - Food Cart &
34 Handle food order placement with quantity, instructions, and price.
Checkout
Swiggy - Delivery Tracker Show order status: Accepted → Preparing → Out for Delivery →
35
(Status Only) Delivered.
36 Swiggy - Rating & Feedback Users can leave ratings and feedback for food and delivery.
37 Zomato - Restaurant Reviews Create a review section per restaurant with sorting by recent/top.
Netflix - Movie Listing with
38 Create a list of movies/series by genre with image thumbnails.
Categories
39 Netflix - Watchlist System Allow logged-in users to add/remove movies to their watchlist.
40 Netflix - Video Player Page Stream embedded videos using basic PHP + HTML5 video tag.
Netflix - Subscription & Plan
41 Build monthly plan subscription (non-payment, simulation only).
System
Netflix - Continue Watching
42 Save the last watched timestamp of the video for resume watching.
Section
Quora - Question Posting
43 Users can post questions under categories and tags.
System
Faculty of Computer Applications Page 11
PUNJAB COLLEGE OF TECHNICAL EDUCATION
S.N
LAB TASK Description
o
44 Quora - Answer System Add answers to questions with upvote/downvote.
45 Quora - Follow Questions Follow questions and get notified of new answers.
Quora - User Reputation
46 Points-based system based on upvotes, answers, followers.
System
47 Gmail - Basic Email Sender Send emails using PHPMailer to other users.
48 Gmail - Inbox Management Users receive emails, can archive, delete, mark unread.
Gmail - Compose Email with
49 Send email with file attachments (use file upload + PHPMailer).
Attachments
50 Google Keep - Notes App Create sticky notes with colors, labels, and reminders.
51 Twitter - Tweet System Post short messages (280 characters), displayed in the timeline.
52 Twitter - Hashtag Support Detecting and linking hashtags, displaying trending tags.
Twitter - Retweet
53 Allow retweeting with or without comments.
Functionality
54 Twitter - User Mentions Use @username mentions and link to profile.
55 Pinterest - Image Pin Board Pin images under categories, displayed in Masonry grid.
56 Pinterest - Save Pins to Board Users create boards and save pins/images to them.
[Link] - Hotel Listing
57 Show hotel list by city with filters for price, rating, facilities.
Page
[Link] - Room Booking
58 Build a room booking system with calendar availability.
Engine
UrbanClap - Service Booking Allow users to book services like plumber, cleaner with preferred
59
Platform time.
UrbanClap - Service Provider
60 Service providers login to see bookings and update status.
Dashboard
Faculty of Computer Applications Page 12
PUNJAB COLLEGE OF TECHNICAL EDUCATION
Faculty of Computer Applications Page 13