PHP - LAB - Course Plan
PHP - LAB - Course Plan
COURSE PLAN
Programme : B. Tech CSE-CSF
Course : Web Technologies through PHP Lab
Subject Code : CSEG2111
No. of credits : 1
Semester : IV
Session : Jan 2019- June19
Batch : 2017-21
Prepared by : Varun Sapra
Email : [email protected]
Approved By
HOD
A. PREREQUISITE:
a. HTML
b. PHP
CO1: Write the programs using server side scripting Language i.e. PHP
CO2: Know how to use PHP editor (Eclipse) and how to debug the program
CO3: Learn how to deploy a PHP program to develop a Web based applications
CO4: Learn the concept of database (MySQL) connectivity with PHP programs
CO5: Solve the real time applications
CO6: Learn the Basic PHP concepts, object oriented paradigm, database connectivity, sessions &
cookies.
PSO1
PSO2
PSO3
PO10
PO11
PO12
PO1
PO2
PO3
PO4
PO5
PO6
PO7
PO8
PO9
CO1 1 1 - - - - - - - - - -
CO2 - - 1 - - 2 - - - - - -
CO3 - - - - - 1 1 - - - - -
CO4 - - - - - - - - - 1 1 -
CO5 - 2 2 -
CO6 2 2
D. PEDAGOGY
Students will be evaluated continuously throughout the course based on the following:
1) Performance & Record - 50%
2) Viva Voce - 50%
F1. Performance & Record: WEIGHTAGE - 50%
. The lists of activities performed under the experiments are detailed clearly in Section-
F. F2F experiments have 100% weightage.
The preparation of the students would be evaluated based on viva-voce or quiz examination
in periodic schedules.
It is mandatory for the students to attend the above said continuous evaluation. Students who
do not attend will lose their marks. Continuous Internal Assessment Record Sheet will be
displayed at the end of the semester.
F3. GRADING:
The overall marks obtained at the end of the semester comprising the above two mentioned
shall be converted to a grade.
Student(s), who have met the qualifying criteria of individual practical subject but not met
qualifying criteria of SGPA, will not be allowed to re-appear for improvement. Students,
who wish to re-appear in the practical subject, shall be required to pay the prescribed fee per
subject as notified by the University. The student with Grade “F” only will be eligible to
repeat continuous evaluation of that respective practical subject (s) during summer vacation
(June-July).
Grade shall be awarded on the performance of the student(s). The Grade will be capped as
per the rules mentioned in student Bulletin. There will be no capping of SGPA for the
students re-appeared for Practical Subject. All Other rules and regulations such as
requirement of passing, etc. will remain same as mentioned in rules & regulations.
G. DETAILED SESSION PLAN
EXPERIMENT1:
Title: Introduction to Web Development HTML & CSS
ii. Design html pages for login and new user registration page.
Note: use appropriate input type for different fields, hyper references and proper naming
conventions.
c. CSS
CSS Syntax
CSS Selector
Id selector
Class Selector
Grouping selector
Using Text properties, page properties, table, etc. as per need of application
EXPERIMENT-2:
Note: Use appropriate input type for different fields, hyper references and proper naming
conventions.
EXPERIMENT-3:
1. Design a page having a text box (set maxlength=5) for input and a submit button and write
a script
a. to print whether entered number is even or odd.
b. to print table of entered number.
c. to find sum of square of digits of entered number.
2. Design & write a script for an arithmetic calculator.
3. Write a function to swap two string values using: i. call by value ii. Call by reference
4. Take two positive numbers from user (use input) and print
a. all the numbers divisible by 5 in between entered no.
b. all prime numbers in between entered no.
5. Write a program to take input as seat number (of sleeper coach of Indian train) and identify
the type of seat i.e. upper, middle, lower, side lower an side upper using switch case.
EXPERIMENT-4,5:
EXPERIMENT-6:
1. (a). Write a script to store the roll no, name, age, address, phone no of students into the
file called studentdetails.txt and the records should be stored in the format given below
101:priya:19:bangalore
102:prem:20:chennai
103:anu:18:chennai
104:john:21:bangalore
105:amit:20:mumbai
(b). write a function to retrieve the student information from the studentdetails.txt file.
(c). write a script to display all the students who belong to the city 'bangalore' from the
studentdetails.txt file.
2. Write a script to copy content of one file into another.
3. Write a script to perform file upload operation and then read the data from the uploaded
file.
4. Write a script to take information from registration page of Innovative Learning Center
and write it to a student_details.txt file.
5. Create Syllabus of any course of Innovative Learning Center using File handling.
EXPERIMENT-7:
EXPERIMENT-8:
Title: OOPS & EXCEPTION HANDLING
1. Create a class Book with member functions setPrice(), getPrice(), setTitle(), getTitle(). Make
objects for class book to set price & title of books. And then print the same.
2. Create one constructor for Book class to initialize price and title for the book at the time of
object creation.
3. Create a web application that takes the faculty feedback from the student and stores it in a
file. Given the subject name and the faculty name, the application has to display the average
feedback for each criterion and the comments given by all students.
The student has to enter the feedback form with the following details: faculty name, subject,
date, student id, student name, feedback rating, and comments.
Create a class called as feedback to hold the details as mentioned above. when the student clicks
the “submit feedback” button, the details has to be stored in the feedback object after which the
details are retrieved and stored in a file, when the faculty name and the subject are given,
feedback summary is displayed as follows student notebook php core . Use it to Innovative
Learning Center.
4. Create a class employee with id, name, age, gender, designation and salary. write a function
display employee details() to accept an employee object and display the details of the employee.
designation of the employee can be either “programmer”, “project lead” or “team member”. the
function should throw a design proper exception (with a meaningful message) if the designation
of an employee is not any of these.
Write a function called view employeedetails (), which calls the display employeedetails()
method in question 1. modify the displayemployeedetails () function to propagate the
designation improperexception that is handled in view employeedetails() function that displays
a message called “sorry!!!! employee details cannot be viewed”.
EXPERIMENT-9:
EXPERIMENT-10:
1. Write JavaScript to validate the following fields of the above registration page.
a. Name (Name should contains alphabets and the length should not be less than 6
characters).
b. Password (Password should not be less than 6 characters length).
c. E-mail id (should not contain any invalid and must follow the standard pattern
[email protected])
d. Phone number (Phone number should contain 10 digits only).
2. Write a script to implementation of following using AJAX concept
a. Creating the XMLHttpRequest Object.
b. Opening the XMLHttpRequest Object.
c. Handling downloaded data
d. Display the content of the file.
H. GUIDELINES:
Cell Phones and other Electronic Communication Devices: Cell phones and other electronic
communication devices (such as Blackberries/Laptops) are not permitted in classes during Tests
or the Mid/Final Examination. Such devices MUST be turned off in the class room.
E-Mail and online learning tool: Each student in the class should have an e-mail id and a pass
word to access the e-labs system regularly. Regularly, important information – Date of
conducting class tests, guest lectures, via online learning tool. The best way to arrange meetings
with us or ask specific questions is by email and prior appointment. All the assignments
preferably should be uploaded on online learning tool. Various research papers/reference
material will be mailed/uploaded on online learning platform time to time.
Attendance: Students are required to have minimum attendance of 75% in each subject.
Students with less than said percentage shall NOT be allowed to appear in the end semester
examination.
Passing criterion: Passing criterion: If the batch size is upto 30, Grading shall be done on the
basis of absolute grading system
• If the batch size is more than 30, the grading will be done based on Relative Grading System
Both in Absolute and Relative Grading System passing criteria will be:
• For UG-Students: Scoring less than 35 absolute marks in individual course either in end
semester examination or as composite score shall be awarded as ‘F’
• For PG-Students: Scoring less than 40 absolute marks in individual course either in end
semester examination or as composite score shall be awarded as ‘F’
• For UG & PG: Students scoring 85 marks and above as composite score (IA+MS+ES) shall
be awarded as the highest grade as ‘O’ i.e., Outstanding (on 10 point Scale) and ‘A’ i.e.,
Outstanding (on 4 point Scale)
Course outcome assessment: To assess the fulfilment of course outcomes two different
approaches have been decided. Degree of fulfillment of course outcomes will be assessed in
different ways through direct assessment and indirect assessment. In Direct Assessment, it is
measured through quizzes, tests, assignment, Mid-term and/or End-term examinations. It is
suggested that each examination is designed in such a way that it can address one or two
outcomes (depending upon the course completion). Indirect assessment is done through the
student survey which needs to be designed by the faculty (sample format is given below) and it
shall be conducted towards the end of course completion. The evaluation of the achievement
of the Course Outcomes shall be done by analyzing the inputs received through Direct and
Indirect Assessments and then corrective actions suggested for further improvement.