3rd Sem Skill Syllabus PHP
3rd Sem Skill Syllabus PHP
COMPUTER APPLICATIONS
(WEB DEVELOPER)
SKILL ENHANCEMENT COURSE (SEC)
THEORY (2 CREDITS)
Essential PHP. Creating a simple PHP program. PHP Building Blocks- Variables, Data Types,
Operators and Expressions. Switching Flow, Loops , Functions- Calling, Defining Returning Values,
Variable Scope Static Functions , Arrays, Array related Functions. Working with Objects- String, Date
and Time
Working with Forms. Working with Cookies and User Sessions. Working with Files and Directories
REFERENCE BOOKS:
1. Steven Holzner, "PHP: The Complete Reference Paperback", McGraw Hill Education (India), 2007.
2. Timothy Boronczyk, Martin E. Psinas, "PHP and MYSQL (Create-Modify-Reuse)", Wiley India
Private Limited, 2008.
3. Robin Nixon, "Learning PHP, MySQL, JavaScript, CSS & HTML5", 3rd Edition
Paperback,O'reilly, 2014.
PRACTICAL (2 CREDITS)
LAB SHEET- INTRODUCTION TO PHP AND MYSQL
1. Create a PHP page using functions for comparing three integers and print the largest number.
2. Write a function to calculate the factorial of a number (non-negative integer). The function should
accept the number as an argument.
3. Write a program to check whether the given number is prime or not.
4. Create a PHP page which accepts string from user. After submission that page displays the reverse of
provided string.
5. Write a PHP function that checks if a string is all lower case.
6. WAP to sort an array.
7. WAP in PHP to create Login and Logout using sessions.
8. WAP in PHP to parse a sentence and calculate no. of words and punctuation marks.
9. Program to set, retrieve and delete a cookie
10. WAP in PHP to open a new connection to the MySQL server.
11. WAP to create, open, read, write, append, delete and close files.
12. Develop a PHP MySQL Login System.