Introduction to PHP programming

Duration: 2 days
WHO SHOULD ATTEND: PHP is a scripting language used to create dynamic, complex and robust Web pages. It is a popular choice for Open Source Software Web development and is described in the LinuxApacheMySQLPHP (LAMP) architecture. In this course, a solid foundation in PHP techniques is introduced through extensive handson exercises that allows you to produce dynamic Web pages. PREREQUISITES: Familiar with any operating systems and computer hardware. Have experience developing software in any programming language. Experience in writing HTML pages. OBJECTIVES: Develop PHP scripts to perform a variety of tasks. Generate Web pages dynamically using PHP. Retrieving and manipulating form data. Personalizing Web site content using cookies and sessions. Describe ObjectOriented Programming features of PHP. Use PEAR in PHP.

1. Introduction to PHP What is PHP? Features of PHP Setting up PHP with Apache Basic PHP syntax PHP comments Predefined and user variables Variable types if PHP HTML Forms and PHP Creating simple HTML forms Retrieve form data with POST and GET Displaying errors



4. Using Numbers in PHP Adding. 10. Using strings in PHP Connecting strings What is magic quotes? Embed HTML in PHP Encoding and decoding strings Control Structures Conditional operators with if and s witch Loops with for and while Using Arrays Creating arrays Accessing values in the array Multi dimensional arrays Sorting arrays String and arrays Create array from form elements Creating Web Applications Using templates The include and require Using constants Using data and time Using same page for forms and processing Making forms sticky Sending Emails What is output buffering? Cookies and Sessions What are cookies? Create and use a cookie What are sessions? Create and use sessions 6. Functions Create and call functions Setting default arguments Returning values Variable scope . 9. 8. 7. subtracting. multiplying and divide Formatting numbers Creating random numbers 5.

More PHP Object oriented programming in PHP Creating a class Creating an object Inheritence What is PEAR? Installation of PEAR Installation of a PEAR package Using a PEAR package Malaysian Public Sector Open Source Competency Centre (OSCC) 2nd . Regular expressions What is regular expressions Matching patterns 3200 Jalan Teknokrat 2 63000 Cyberjaya Selangor. No. MKN-Embassy Techzone Building Block B. Files and Directories Opening files Writing to a file Locking a file Reading a file content Handling file upload Working with directories 12. Malaysia General line: 03-83180225 Fax: 03-83182327 Email: contact@oscc.