Copyright © 2002 ProsoftTraining. All rights reserved. Dynamic Server Pages.
-
Upload
cori-hardy -
Category
Documents
-
view
214 -
download
0
Transcript of Copyright © 2002 ProsoftTraining. All rights reserved. Dynamic Server Pages.
Objectives
• Define PHP• Identify platforms and Web servers that
support PHP• Describe the installation and configuration of
PHP• Discuss add-on modules used with PHP• Create a Web publishing directory
What Is PHP?
• Server-side scripting language• Embedded in HTML documents• Known as PHP Hypertext Preprocessor
Summary
Define PHP Identify platforms and Web servers that
support PHP Describe the installation and configuration of
PHP Discuss add-on modules used with PHP Create a Web publishing directory
Objectives
• Describe the structure of PHP pages• Define variables and data types• Discuss and use constants• Discuss variable functions• Define and use operators
PHP Variables
• Data types– Integer– Double– String
• Constants• Type casting• Variables and form data
Summary
Describe the structure of PHP pages Define variables and data types Discuss and use constants Discuss variable functions Define and use operators
Objectives
• Describe and use conditional statements• Define and use switch statements• Define and use for loops• Define and use while loops
Summary
Describe and use conditional statements Define and use switch statements Define and use for loops Define and use while loops
Objectives
• Describe and use PHP arrays• Discuss associative arrays• Discuss multidimensional arrays• Sort PHP arrays
PHPArrays
• Associative arrays• Multidimensional arrays• Sorting arrays
– The sort ( ) and assort ( ) functions– The array_multisort ( ) function
Summary
Describe and use PHP arrays Discuss associative arrays Discuss multidimensional arrays Sort PHP arrays
Objectives
• Define and use functions• Explain and use the function statement• Pass arguments to PHP functions• Return values from PHP functions• Explain variable scope in PHP• Assign a function to a variable
PHPFunctions
• The function statement• Passing arguments• Variable scope• Assigning a function to a variable
Summary
Define and use functions Explain and use the function statement Pass arguments to PHP functions Return values from PHP functions Explain variable scope in PHP Assign a function to a variable
Copyright © 2002 ProsoftTraining. All rights reserved.
Lesson 6:String Manipulation
and File Input/Output
Objectives
• Discuss PHP string functions• Describe and use regular expressions• Define and use pattern matching• Open and close files on the server• Write to and read from files on the server• Create and use flat database files
String Functions
• strlen() function• substr() function• strpos() function• trim() function• strtolower() and strtoupper() functions• ucfirst() and ucwords() functions• printf() and sprintf() functions
RegularExpression Functions
• ereg() and eregi() functions• ereg_replace() and eregi_replace()
functions
File Inputand Output
• Opening files• File mode specifiers• Reading files• Writing to files• Moving within files
Summary
Discuss PHP string functions Describe and use regular expressions Define and use pattern matching Open and close files on the server Write to and read from files on the server Create and use flat database files
Objectives
• Explain the basics of databases• Explain database structure and schemas• Define and use SQL• Discuss cursors and result sets• Define stored procedures• Add records to and search a database• Update and delete records from an ODBC-
compliant database
Primary Keysand Foreign Keys
Integer ID
Double Balance
Boolean Checking
Integer ID
String FName
String LName
String AddressDate StartDate
Integer Customer
BankAccount Table Customer Table
Structured Query Language (SQL)
• Data Definition Language (DDL)• Data Query Language (DQL)• Data Manipulation Language (DML)
Summary
Explain the basics of databases Explain database structure and schemas Define and use SQL Discuss cursors and result sets Define stored procedures Add records to and search a database Update and delete records from an ODBC-
compliant database
Objectives
• Explain debugging PHP applications• Describe errors and error handling• Describe PHP security issues• Explain safe mode
DebuggingPHP Applications
• Syntax errors• Runtime errors• Logical errors• Error messages in PHP
– Parse errors– Fatal errors– Warnings– Notices
• Error handling
Preventing Errors
• Script by design• Keep the script simple• Adhere to strict naming conventions• Use a modular approach
PHPSecurity Issues
• Securing the server• Settings• Configuration options• Safe mode• Writing secure PHP applications
Summary
Explain debugging PHP applications Describe errors and error handling Describe PHP security issues Explain safe mode
Objectives
• Define an ASP file and ASP-based applications• Describe ISAPI programs• Discuss the Web servers that support ASP
applications• Describe the structure of ASP technology• Define and create virtual directories• Define and use server-side include files• Create and use a global.asa file
Introduction
• Microsoft Internet Information Server• Internet Server Application Programming
Interface
ASP Mechanics
• Dynamic link library• Comparing ASP and other technologies• ODBC• Out-of-process• In-process
Virtual Directoriesand ASP Applications
• Virtual directories are mappings between a name and an actual path to a real directory
• Virtual directories contain:– global.asa file– default.htm or default.asp
Summary
Define an ASP file and ASP-based applications Describe ISAPI programs Discuss the Web servers that support ASP
applications Describe the structure of ASP technology Define and create virtual directories Define and use server-side include files Create and use a global.asa file
Objectives
• Identify and use VBScript operators and expressions
• Define and use VBScript variables and data types
• Declare VBScript arrays• Define and use conditional statements and
looping constructs• Create subroutines and functions
Differences BetweenVBScript and JavaScript
• Calling functions and subroutines• Function calls and implementation in
JavaScript and VBScript• Event-driven programming
DeclaringVariables with VBScript
• Declaring variables– Dim keyword– Public keyword– Private keyword
• Naming variables• Arrays, ReDim, and Preserve• Collections• Option Explicit• Data subtypes and conversion functions
Program Flow
• If statements• Select Case statements• Looping constructs• For…Next statements• Do… loops• While…Wend statements
Summary
Identify and use VBScript operators and expressions
Define and use VBScript variables and data types
Declare VBScript arrays Define and use conditional statements and
looping constructs Create subroutines and functions
Objectives
• Identify and use ASP intrinsic objects• Define and use properties and methods of
ASP objects• Use the Request and Response objects• Identify Server object properties• Identify the ObjectContext object• Discuss object scope
Summary
Identify and use ASP intrinsic objects Define and use properties and methods of
ASP objects Use the Request and Response objects Identify Server object properties Identify the ObjectContext object Discuss object scope
Objectives
• Identify and use ASP default components• Define and use properties and methods of
ASP components• Create and write to a flat database file
ASP DefaultComponents
• Ad Rotator• Browser Capabilities
• Content Linking• Content Rotator• Counters
• Page Counter• Permission Checker
• FileSystemObject• ActiveX Data Objects
Summary
Identify and use ASP default components Define and use properties and methods of
ASP components Create and write to a flat database file
Objectives
• Define ODBC and OLE DB• Define and use ADO• Define and create DSNs• Insert records into a database using ASP and
ADO• Update and delete records in a database using
ASP and ADO
Summary
Define ODBC and OLE DB Define and use ADO Define and create DSNs Insert records into a database using ASP and
ADO Update and delete records in a database using
ASP and ADO
Copyright © 2002 ProsoftTraining. All rights reserved.
Lesson 11:Error Handling and Debugging
for ASP Applications
Objectives
• Discuss debugging ASP applications• Discuss errors and error handling• Define the VBScript Err object• Describe and create custom error numbers• Discuss error logging• Discuss the Microsoft Script Debugger
DebuggingASP Applications
• Handling errors• The Err object• Logging errors• Microsoft Script Debugger
Summary
Discuss debugging ASP applications Discuss errors and error handling Define the VBScript Err object Describe and create custom error numbers Discuss error logging Discuss the Microsoft Script Debugger
Copyright © 2002 ProsoftTraining. All rights reserved.
Lesson 15:Project Management
in Application Development
Objectives
• Discuss project management fundamentals• Define source and revision control• Discuss coding standards• Define code optimization• Define and use a test assessment plan• Discuss application testing both before and
after deployment
Project Management Fundamentals
• What is project management?– Business process/functionality design– Technology/architecture design– Implementation/development– Pilot/parallel– Cutover/live
• Further study– PMI– ISO 9000 series
Source andRevision Control
• Program code control• Version-control software• Revision Control System (UNIX)• Source Code Control System (UNIX)• Visual SourceSafe (Microsoft)
Coding Standards
• Indentation and margins• Matching brackets• Parentheses• Reserved words and keywords• Naming conventions• Language constructs• Comments• Error handling
Test Assessment Plans
• Creating a test plan• Glass-box testing• Black-box testing• Post-live testing
Summary
Discuss project management fundamentals Define source and revision control Discuss coding standards Define code optimization Define and use a test assessment plan Discuss application testing both before and
after deployment
Objectives
• Discuss basic database construction issues• Explain data integrity• Define various mechanisms for insuring data
integrity• Discuss the different goals of security• Explain the basis of encryption• Examine the different protocols used as
encryption is applied to various situations
DatabaseSecurity Issues
• Data Control Language• Other security-related issues
– Hardware volatility and failure– Concurrent access
• User authorization• General security information
Symmetric, Asymmetric, and One-Way Algorithms
• Symmetric encryption example– Rot-13
• One-way encryption• Public-key encryption• Private-key encryption
Protocols
• Authentication and digital signatures• Diffie-Hellman key exchange and certificate
authorities• X.509 format
Summary
Discuss basic database construction issues Explain data integrity Define various mechanisms for insuring data
integrity Discuss the different goals of security Explain the basis of encryption Examine the different protocols used as
encryption is applied to various situations
Dynamic Server Pages
Introduction to PHP PHP Fundamentals PHP Statements and Flow Control PHP Arrays PHP Functions String Manipulation and File Input/Output PHP and Databases
Dynamic Server Pages
Debugging PHP and PHP Security Active Server Pages (ASP) Using VBScript ASP Intrinsic Objects ASP Default Components