0% found this document useful (0 votes)
10 views3 pages

Mca - Ii - A - WD Lab - Rajesh

The document outlines the practical assignments for the Web Development using PHP Lab for the Master of Computer Application program, Batch 2024-2027. It includes general instructions for submission and a list of 25 PHP programming tasks that students must complete. Assignments must be handwritten, submitted in a specific format, and adhere to deadlines to avoid penalties for discrepancies.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

Mca - Ii - A - WD Lab - Rajesh

The document outlines the practical assignments for the Web Development using PHP Lab for the Master of Computer Application program, Batch 2024-2027. It includes general instructions for submission and a list of 25 PHP programming tasks that students must complete. Assignments must be handwritten, submitted in a specific format, and adhere to deadlines to avoid penalties for discrepancies.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SCHOOL OF ENGINEERING & IT

DEPARTMENT OF COMPUTER SCIENCE & IT


MASTER OF COMPUTER APPLICATION
BATCH 2024 - 2027

SEMESTER II – A
WEB DEVELOPMENT USING PHP LAB

SESSION 2024-25

PRACTICAL ASSIGNMENTS

Prepared By:
RAJESH KUMAR GUPTA
Assistant Professor
General Instructions
1. Students are advised to submit the assignment along with the below-mentioned information at
the top Page: -
I. Student ID : - AJU/210XXX
II. Name of The Students :-
III. Course Name :-
IV. Contact No :-
V. E-Mail :-
2. Total of 5 assignments will be given. All the Assignments are compulsory
3. Submit unit-wise Assignment.
4. Each Assignment has a separate deadline.
5. Assignment correction should be on or before the deadline.
6. Students have to use only Classmate Type Copy to Answer their Assignment in their own
handwriting.
7. Typed or Print out Assignments are not accepted.
8. After completing the assignment, the student will make a scanned copy of the solution in pdf
format and afterward has to submit by google form or via mail only.
9. The Assignment pdf file name would be in the unique format of Students Registan no +
Course Code. (Ex: - AJU/210001 and CSC10023 pdf file name should be
AJU_210001_CSC10023).
10. If any discrepancy such as copying/duplication from others is found in the assignment
submitted, cancellation of the entire assignment may be imposed.
11. Students should have to retain hand written hard copy of the Assignments Sent for future
reference as well as submission to the course teacher as instructed.
ASSIGNMENT

1. Write a PHP script to print "Hello, World!" on the browser.


2. Write a PHP program to check if a given number is even or odd.
3. Write a PHP script to find the largest of three numbers using if-else.
4. Write a PHP program that prints numbers from 1 to 100 using a for loop.
5. Create a while loop that prints even numbers from 1 to 20.
6. Write a PHP script that uses a switch statement to display the day of the week based on a
number (1–7).
7. Write a program to calculate the sum of digits of a number using a while loop.
8. Write a PHP script to search for a specific value in an array.
9. Write a PHP program to sort an array in ascending and descending order.
10. Write a PHP script to count the number of words in a string.
11. Write a PHP script to create a form that accepts a user’s name and displays a greeting
message.
12. Write a script that validates an email address.
13. Write a PHP function to find the factorial of a number.
14. Write a PHP function that takes two arguments and returns their sum.
15. Write a recursive function to calculate the Fibonacci sequence.
16. Define a class Car with properties brand, model, and year. Create an object and display its
details.
17. Write a PHP program to implement inheritance with a Vehicle class and a Car subclass.
18. Create a Person class with a constructor and a destructor.
19. Write a PHP script to connect to a MySQL database.
20. Write a PHP script to insert data into a MySQL table.
21. Write a PHP script to fetch and display records from a MySQL table.
22. Write a PHP script to update and delete records in a MySQL table.
23. Write a PHP script that uses try-catch to handle exceptions.
24. Write a PHP program to create a file and write some text into it.
25. Write a PHP script to read data from a file and display it.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy