php workshop at iscte-iul mar 2015
TRANSCRIPT
André Aleixo
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
Lead Developer at FixeAds
Who are we?
http://pt.linkedin.com/in/andrealeixo
http://github.com/ajaaleixo
Rafael Pinto
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
Lead Architect at FixeAds
Who are we?
http://pt.linkedin.com/in/pintorafael
http://github.com/pintorafael
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
Programming Languages
that you know?
Who are you?
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
PHP has come a long way since its birth in the
mid-1990's. From humble beginnings to
becoming one of the most prominent languages
powering the web, the evolution of PHP is a
geek's fairy tale.
history
“
Source: php.net
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
facts
• Free
• Open Source
• Server-side language
• Huge community support
• Not pre-compiled language
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
PHP setup
• HTTP Server (Apache)
• Apache Modules (mod_php, etc)
• PHP 5+
• Database Engine
• And more +
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
Web basics
• HTTP
• Sessions
• Cookies
• SQL Injection
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
class/function loading
Index.phpPerson.php
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
Class
autoloadingIndex.phpMyAutoloader.php
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
Class
autoloadingIndex.phpMyAutoloader.php
PHP Beginner’s workshop - Rafael Pinto & André Aleixo – 2015
Exercises
• Simple Hello World
• Output HTML from file
• Access request (GET and POST) parameter
• Session handling
• Data access with mysql
• SQL injection avoiding
• Simple login
• CRUD operation
• ALPHA usage
• http://github.com/alpha-php/alpha