Logo ČVUT
Loading...
CZECH TECHNICAL UNIVERSITY IN PRAGUE
STUDY PLANS
2011/2012

Programming in PHP

Login to KOS for course enrollment Display time-table
Code Completion Credits Range Language
BI-PHP KZ 4 0+3 Czech
Lecturer:
Pavel Štěpán (gar.)
Tutor:
Pavel Štěpán (gar.), Helena Wallenfelsová
Supervisor:
Department of Software Engineering
Synopsis:

The goal of the course is to acquaint students with the principles of dynamically generated server-side web pages. PHP programming language (types and definitions of variables, operators, arrays, loops, definitions and calls of functions, strings, regular expressions) and PHP code embedding into the HTML page are discussed. Students gain an insight into implementation of object oriented programming in PHP, inheritance and polymorphism in PHP, databases in the PHP environment, practical use of MySQL / SQLLite database system, and selected parts of PHP libraries.

Requirements:

Algorithmization and essential knowledge of the programs development are assumed. Knowledge of HLML, fundamentals in the object oriented programming, and the experience in the database management are advantages, but not necessity.

Syllabus of lectures:

1. The overview of HTTP, HTML and CSS; building of dynamically generated web applications using server-side scripts. An example of a single web page and information related to PHP installation are included.

2. Fundamentals in PHP language: embedding PHP script into HTML code, data types (integer, floating point, string), variables, expressions, constants, operators, control structures (if, for, switch).

3. PHP major features: arrays, library functions, user-defined functions.

4. Web forms: client-side data entering (tags input, select, form?), data processing in PHP, building of dynamic page using the submitted data, practical examples.

5. Application state: state and web, session, session variables, session configuration, session providers.

6. Object oriented programming: intro, encapsulation, methods, properties, class definitions, object instance, destructors, static features and methods.

7. Object derivation: inheritance, its definition and use, abstract classes and methods, polymorphism.

8. Error processing: configuration, exceptions, Exception class, Try-catch structure.

9. Strings: selected string functions; regular expressions - intro, implementation in PHP

10. Date and Time: selected library functions processing time and date, Date class, validation, localization.

11. Databases: intro, overview of SQL (Select, Insert, Update and Delete); database and PHP; tools available; PDO layer; MySQL or SQLite database utilization; building of a web page using data from a database; data entering and processing using web form.

12. Security and PHP: possible threats, parameters testing, functions for authentication.

13. AJAX technology: intro, fundamentals in AJAX, XMLHttpRequest object + client-side scripting; example of a simple page using JavaScript and AJAX, counterpart - server-side web application (in PHP) using AJAX.

Syllabus of tutorials:
Study Objective:
Study materials:

Applications developed in the course of the semester are considered to be the main study source. However you can use the following literature:

BAKKEN, S., GUTMANS, A., RETHANS, D. „Mistrovství v PHP 5“. Computer Press, 2007. ISBN: 978-80-251-1519-0

BORONCZYK, T., GERNER, J., NARAMORE, E. „PHP 6, MySQL, Apache. Vytváříme webové aplikace“. Computer Press, 2009. ISBN: 978-80-251-2767-4

Note:
Time-table for winter semester 2011/2012:
06:00–08:0008:00–10:0010:00–12:0012:00–14:0014:00–16:0016:00–18:0018:00–20:0020:00–22:0022:00–24:00
Mon
Tue
Fri
roomT9:351
Štěpán P.
14:30–17:00
(parallel nr.101)
Dejvice
NBFIT PC ucebna
roomT9:351
Štěpán P.
17:00–19:30
(parallel nr.102)
Dejvice
NBFIT PC ucebna
Thu
roomT9:351
Wallenfelsová H.
14:30–17:00
(parallel nr.103)
Dejvice
NBFIT PC ucebna
roomT9:351
Wallenfelsová H.
17:00–19:30
(parallel nr.104)
Dejvice
NBFIT PC ucebna
Fri
roomTH:A-930
Štěpán P.
14:30–17:00
(parallel nr.105)
Dejvice
FIT PC ucebna
Time-table for summer semester 2011/2012:
Time-table is not available yet
The course is a part of the following study plans:
Generated on 2012-7-9
For updated information see http://bilakniha.cvut.cz/en/predmet1477606.html