Duration : 3 months ( 4 days week : 2 hours Per Day) – (weekend: 5 hrs) Fees : 17,000 Rs for perl / Pyhton / PHP Course Contents : PHP
Introduction to PHP
History of PHP Comparison with dynamic content alternatives (Perl, CGI, ASP, JSP, Servlets , CGI, etc) PHP tools and set up (web browser/server, editor, libraries, etc) Create a basic PHP Script Taking user input Selecting alternatives Use PHP to generate HTTP headers Pass PHP variables via the URL
Taking User Input from Forms via PHP
Creating forms with PHP Using the form GET method Using the form POST method Obtaining data from forms through variables Using hidden fields Calling pages from themselves using forms Quoting HTML entities in user input
Variables and Expressions in PHP
Identifiers Data Types (integers, floats and strings) Creating Variables Variable assignment Variable Scope User-defined Constants HTTP environment variables
PHP Operators
Arithmetic Operators Logical Operators Relational Operators Bitwise Operators Other Operators Assignment Operators
Conditional Tests and Events in PHP
True and False
If else and elseif The switch / case statement The ? Operator
Comparing for equality or identity
PHP Flow Control
Loops
while do ... while for break and continue exit
PHP Functions
Purpose of functions Built-in functions Declaring functions Arguments to functions return Scope (global vs local) Recursion Variable function calls
Storing Data in Arrays using PHP
What are arrays? How and when to use arrays Indexing arrays Initialising arrays Add/remove info from arrays One-dimensional arrays
Multi-dimensional arrays Array-related functions
Handling Databases with PHP
PHP's database APIs Error-handling strategies Connection/disconnection, log in/log out Including common access functions Doing simple SQL queries via PHP Building HTML tables using SQL Queries
PERL
Perl: the absolute minimum
Enough of the language to get started The print function Variables Scalars — numbers and strings Assignment Simple conditional tests — if Lists Arrays — for storing lists foreach loops Hashes Other loops: while, for, do, until Arrays — the rest Simple input, e.g., while(<>) Functions overview — recognising, writing, using Simple file handling — open, print Subroutines — parameters in and out, listification, local variables ( my) Help — perldoc, books, web
Regular expressions
Text manipulation with regular expressions Matching strings Matching the default variable Case-sensitivity and matching Special characters Special characters: where Special characters: what Special characters: how many Built-in character classes
Built-in character class examples Capturing Regular expression examples Substitution Global substitutions
Perl: beyond the basics
More flow control Statement modifiers Quoting mechanisms — qq(), etc. Here documents Uppercase/lowercase conversion Splitting strings into lists Joining lists into strings Filtering lists with map Sorting lists The importance of context Assignment shortcuts Scoping rules Special variables
Complex data structures & references
Limits of flat lists Nesting arrays Array references Anonymous arrays Named array references Passing multiple arrays to/from functions Hashes of arrays Hash references Arrays of hashes Hashes of hashes Complex nested data structures Code references Dispatch tables
Finding Out More For Yourself
How to read Perl's documentation Where to find more information Knowing what's out there to look for FAQs
Using Perl Modules from CPAN
The Comprehensive Perl Archive Network (CPAN) Why effective Perl programmers are efficient CPAN users CPAN's philosophy Finding modules Installing Modules Using modules Some particularly useful modules
Command-Line Perl
General principles Using Perl as a filter Editing files in-place Many real world examples Command line flags Many examples using regular expressions
PYTHON
Introduction Features of Python Installing Python For Linux/BSD users For Windows Users First Steps Using the interpreter prompt Choosing an Editor Using a Source File Output How It Works Executable Python programs Getting Help The Basics Literal Constants Numbers Strings Variables Identifier Naming Data Types Objects
Output How It Works Logical and Physical Lines Indentation Operators and Expressions Operators Operator Precedence Order of Evaluation Associativity Expressions Using Expressions Control Flow The if statement Using the if statement How It Works The while statement Using the while statement The for loop Using the for statement The break statement Using the break statement The continue statement Using the continue statement Functions Defining a Function Function Parameters Using Function Parameters Local Variables Using Local Variables Using the global statement Default Argument Values Using Default Argument Values Keyword Arguments Using Keyword Arguments The return statement Using the literal statement DocStrings Using DocStrings Modules Using the sys module Byte-compiled .pyc files The from..import statement A module's __name__ Using a module's __name__
Making your own Modules Creating your own Modules from..import The dir() function Using the dir function Data Structures List Quick introduction to Objects and Classes Using Lists Tuple Using Tuples Tuples and the print statement Dictionary Using Dictionaries Sequences Using Sequences References Objects and References More about Strings String Methods Problem Solving - Writing a Python Script The Problem The Solution First Version Second Version Third Version Fourth Version More Refinements The Software Development Process Object-Oriented Programming The self Classes Creating a Class object Methods Using Object Methds The __init__ method Using the __init__ method Class and Object Variables Using Class and Object Variables Inheritance Using Inheritance Input/Output
Files Using file Pickle Pickling and Unpickling
Exceptions Errors Try..Except Handling Exceptions Raising Exceptions How To Raise Exceptions Try..Finally Using Finally The Python Standard Library The sys module Command Line Arguments More sys The os module More Python Special Methods Single Statement Blocks List Comprehension Using List Comprehensions Receiving Tuples and Lists in Functions Lambda Forms Using Lambda Forms The exec and eval statements The assert statement The repr function