BITM Web Technology - II
bitmsemester 4
Web Technology - II
Subject Code: IT219
Course Title: Web Technology - II
Course No: IT219
Nature of Course: Theory & Practical
Full Marks: 60 + 40
Pass Marks: 30 + 20
Credit Hours: 3
Course Description
Orientation and First Steps, Working with Text and Numbers, Making Decisions and Repeating, working with arrays, function, Web forms, working with databases, Remembering Users with Cookies and Sessions, Handling Dates and Times, Working with Files
Course Objective
This course will teach to develop interactive and dynamic web sites. Currently dynamism has become vital part of web site for any organization. This course will be of great help for student in integrating dynamism in their web sites that have competitive advantage.
Course Contents
| Course Contents | Teaching Methodology | Teaching Hours |
|---|---|---|
| Unit 1: Orientation and First Steps (2 Hrs.) | ||
| PHP's Place in the Web World, What's So Great About PHP?, PHP in Action, Basic Rules of PHP Programs. | Lecture | |
| Unit 2: Working with Text and Numbers (2 Hrs.) | ||
| Text, Numbers, Variables | Lecture | |
| Unit 3: Making Decisions and Repeating Yourself (5 Hrs.) | ||
| Understanding true and false, Making Decisions, Building Complicated Decisions, Repeating Yourself. | Lecture | |
| Unit 4: Working with Arrays (5 Hrs.) | ||
| Array Basics, Looping Through Arrays, Modifying Arrays, Sorting Arrays, Using Multidimensional Arrays. | Lecture | |
| Unit 5: Functions (5 Hrs.) | ||
| Declaring and Calling Functions, Passing Arguments to Functions, Returning Values from Functions, Understanding Variable Scope. | Lecture | |
| Unit 6: Making Web Forms (8 Hrs.) | ||
| Useful Server Variables, Accessing Form Parameters, Form Processing with Functions, Validating Data, Displaying Default Values, Putting It All Together. | Lecture | |
| Unit 7: Working with Databases (12 Hrs.) | ||
| Organizing Data in a Database, Connecting to a Database Program, Creating a Table, Putting Data into the Database, Inserting Form Data Safely, Generating Unique IDs, A Complete Data Insertion Form, Retrieving Data from the Database, Changing the Format of Retrieved Rows, Retrieving Form Data Safely, A Complete Data Retrieval Form, MySQL Without PEAR DB. | Lecture | |
| Unit 8: Remembering Users with Cookies and Sessions (3 Hrs.) | ||
| Working with Cookies, Activating Sessions, Storing and Retrieving Information, Configuring Sessions, Login and User Identification, Why setcookie( ) and session_start( ) Want to Be at the Top of the Page. | Lecture | |
| Unit 9: Handling Dates and Times (2 Hrs.) | ||
| Displaying the Date or Time, Parsing a Date or Time, Dates and Times in Forms, Displaying a Calendar. | Lecture | |
| Unit 10: Working with Files (4 Hrs.) | ||
| Understanding File Permissions, Reading and Writing Entire Files, Reading and Writing Parts of Files, Working with CSV Files, Inspecting File Permissions, Checking for Errors, Sanitizing Externally Supplied Filenames. | Lecture |
Reference Books
1. David Sklar, "Learning PHP 5, A Pain-Free Introduction to Building Interactive Web Sites", O'Reilly Media
2. Kevin Tatroe, Peter MacIntyre, Rasmus Lerdorf, "Programming PHP", O'Reilly Media
3. Robin Nixon, "Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTML5"
4. Luke Welling, PHP and MySQL Web Development, Addison-Wesley Professional O'Reilly Media
