JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

CS833OE: PHP PROGRAMMING

B.Tech IV Year II Semester (R16)

Course Objectives:

  • Gain the PHP programming skills needed to successfully build interactive, data- driven sites
  • Use the MVC pattern to organize code
  • Test and debug a PHP application
  • Work with form data
  • Use cookies and sessions
  • Work with regular expressions, handle exceptions, and validate data

Course Outcomes:

  • Be able to develop a form containing several fields and be able to process the data provided on the form by a user in a PHP-based script.
  • Understand basic PHP syntax for variable use and standard language constructs, such as conditionals and loops.
  • Understand the syntax and use of PHP object-oriented classes.
  • Understand the syntax and functions available to deal with file processing for files on the server as well as processing web URLs.
  • Understand the paradigm for dealing with form-based data, both from the syntax of HTML forms, and how they are accessed inside a PHP-based script.

UNIT - I

INTRODUCTION TO PHP: History of PHP, Apache Web Server, MySQL and Open Source, Relationship between Apache, MySQL and PHP (AMP Module), PHP configuration in IIS, Apache Web server BASICS OF PHP: PHP structure and syntax, Creating the PHP pages, Rules of PHP syntax, Integrating HTML with PHP, Constants, Variables : static and global variable, Conditional Structure & Looping, PHP Operators, Arrays, for each constructs, User defined function, argument function, Variable function, Return Function, default argument, variable length argument.

UNIT - II

WORKING WITH FUNCTIONS: Variable Function, String Function, Math Function, Date Function, Array Function, and File Function. User defined function, Systems defined function, Parameterized function, Non parameterized function, Dynamic parameter in function, Variable scope, Passing Argument in function, Static function.

R16 B.TECH AERONAUTICAL ENGG.

UNIT - III

WORKING WITH DATA: FORM element, INPUT elements, Processing the form, User Input, Adding items, Validating the user input, Passing variables between pages. Files, Creating and deleting file, Reading and writing file, Working with file, Creating and deleting folder, Working with regular Expression Basic regular expression, Matching patterns, Finding match, Replace match,

UNIT - IV

ERROR HANDLING: Error types in PHP, Generating PHP errors, Exceptions, Parse errors, State Management: - Cookies Session, Destroying cookies and session Http management, Sent mail Images with PHP: Working with GD Library, File types with GD and PHP, Compiling PHP with GD, Creating the image table, uploading the image.

UNIT - V

INTRODUCTION TO MYSQL: MySQL structure and syntax, Types of MySQL tables and storages engines, MySQL commands, Integration of PHP with MySQL, Connection to the MySQL server, Working with PHP and arrays of data, Referencing two tables, Joining two tables. WORKING WITH DATABASE: Creating a table, manipulating the table, editing the database, inserting a record, deleting a record, editing data Understand process of executing a PHP-based script on a webserver.

TEXT BOOKS:

  • 1. Beginning PHP, Apache, MySQL Web Development - Elizabeth Naramore, Jason Gerner, Yann Le, Scouarnec, Jeremy Stolz, Michael K. Glass, Gary Mailer - By Wrox Publication.
  • 2. PHP, MySQL and Apache - Julie C. Melone By Pearson Education

REFERENCE BOOKS:

  • 1. Beginning PHP 5.3, by Matt Doyle - By Wrox Publication
  • 2. PHP and MySQL Bible – Tim Converse and Joyce Park with Clark Morgam By Wiley INDIA R16 B.TECH AERONAUTICAL ENGG. B.TECH. ELECTRONICS AND COMMUNICATION ENGINEERING / B.TECH ELECTRONICS AND TELEMATICS ENGINEERING

Loading Question Papers

Fetching data from database...