BCAP-401: PHP & PERL PROGRAMMING
Course Objectives:
Develop substantial Perl scripts, when appropriate reusing previously created scripts.
Credits: 03 L-T-P-J: 3-0-0-0
Unit-1: 8
Hours
Introduction to PHP Web Development,PHP and MySQL's in Web Development, Components of a PHP
Application, Integrating Many Sources of Information, Requesting Data from a Web PagePHP and
Dynamic HTML pagesForm (text field, password field, text area, radio buttons, checkbox, file, select
menu, buttons) Dynamic Content and the WebPHP and HTML Text, Coding Building Blocks
Unit-2: 8
Hours
Control Statements: if() and elseif() condition Statement, The switch statement, Using the?Operator,
Using the while() Loop, The do while statement, Using the for(), Loop.
Functions: Function definition, Creation, Returning values, Library Functions, Userdefined functions,
Dynamic function, default arguments, Passingarguments to a function by value.
String Manipulation: Formatting String for Presentation, Formatting String for Storage, Joiningand
Splitting String, Comparing String
.
Array: Anatomy of an Array, Creating index based and Associative array,Looping array using each() and
foreach() loop
Unit-3: 8
Hours
Working with File and Directories: Understanding file & directory, Opening and closing a file, Coping,
renaming and deleting a file, Working with directories, File Uploading & Downloading. Generating
Images with PHP: Basics computer Graphics, Creating Image.
Cookies, Sessions and Access Control: Cookies - PHP andHTTP Authentication – sessions - using
Auth_HTTP toAuthenticate. Security: Session security. Validation andError handling: Validating user
input with JavaScript Pattern Matching - Redisplaying a form after PHP validationfails. Building a Blog
Unit-4: 8
Hours
Database Basics, Database Design, Structured Query Language Using MySQL, Advanced SQL, PHP to
Talk to MySQL for Shopping Cart Design, Shopping Cart Design Process, Querying the Database with
PHP Functions
Unit-5: 8
Hours
Perl Basics:Introduction to Perl, Setting up Perl Development Environment, Perl Code Syntax, Variables
&Scalars, Operators, Control Statements, Arrays, Strings, Subroutines, IO
Perl Advanced: Object Oriented Programming, Socket Programming, Database Access, Perl CGI
Programming
Referential Books:
PHP and MYSQL: Create - Modify - Reuse by Timothy Boronczyk, Martin E. Psinas
PHP: The Complete Reference by Steven Holzner
Perl Black Book by Steven Holzner
Learning Perl by Randal L. Schwartz