reveal the power of php

47
Reveal the Power of PHP Vo Duy Tuan – ZCE <[email protected]> Cisnet – 2010

Upload: vo-duy-tuan

Post on 18-May-2015

5.189 views

Category:

Technology


2 download

DESCRIPTION

Slide giới thiệu về PHP, những điểm đáng chú ý về ngôn ngữ PHP. Đồng thời trình bày một số khái niệm về Security, Large-scale và giới thiệu về chứng chỉ ZCE của Zend.

TRANSCRIPT

Page 1: Reveal the Power of Php

Reveal the Power of PHP

Vo Duy Tuan – ZCE <[email protected]>Cisnet – 2010

Page 2: Reveal the Power of Php

$nội_dung_trình_bày

Tại sao xây dựng web? Sự phổ biến của PHP Bảo mật Large-scale PHP Công cụ phát triển Chứng chỉ ZCE – Zend

Page 3: Reveal the Power of Php

$timeline

1. Tại sao xây dựng web?

2. Sự phổ biến của PHP

3. Bảo mật

--- Tea break ---

4. Large-scale PHP

5. Công cụ phát triển

6. Chứng chỉ ZCE – Zend

--- Hỏi & Đáp ---

Page 4: Reveal the Power of Php

Tại sao xây dựng Web?1

Page 5: Reveal the Power of Php

1. Tại sao chúng ta xây dựng website? Bởi vì…

Page 6: Reveal the Power of Php

1. Phân loại website

Social Network Message Board: Forum, Guestbook, Blog… CMS – Content Management System E-Commerce Multimedia (Image Gallery, Music, Video) Web-mail IM – Instant Message Office tools …

Page 7: Reveal the Power of Php

Sự phổ biến của PHP2

Page 8: Reveal the Power of Php

Ngày xửa, ngày xưa…

Rasmus Lerdorf

Viết PHP năm 1994

Công bố năm 1995, PHP v2

Personal Home Page

Page 9: Reveal the Power of Php

Ngày xửa, ngày xưa…

Andi Gutman

& Zeev Suraski Viết lại parser

Công bố PHP3 năm 1998

Viết lại core của PHP, đưa ra Zend Engine năm 1999

Page 10: Reveal the Power of Php

Một vài “ông lớn”

Facebook Yahoo Wikipedia Joomla Wordpress … …Zing me @ Zing @ Vinagame

Page 11: Reveal the Power of Php

PHP làm việc như thế nào?

LAMPLinux

Apache

MySQL

PHP / Python / Perl

Page 12: Reveal the Power of Php

PHP làm việc như thế nào?

Page 13: Reveal the Power of Php

Tại sao dùng PHP?

Open source Làm việc với nhiều cơ sở dữ liệu Lập trình hướng đối tượng Thư viện phong phú: Smarty, PDO… Cộng đồng hỗ trợ lớn Bảo mật Khả năng mở rộng PHP (Extension)

Page 14: Reveal the Power of Php

Cơ sở dữ liệu

Website

Session

Hệ thống File

Bảo mật3

Page 15: Reveal the Power of Php

3.1. Cơ sở dữ liệu

SQL Injection Information Leakage

Page 16: Reveal the Power of Php

3.1. SQL Injection

Page 17: Reveal the Power of Php

3.1. SQL Injection…

Xử lý dữ liệu trước khi truy vấn Sử dụng prepared statement Sử dụng thư viện PDO (PHP Data Object)

Page 18: Reveal the Power of Php

3.2. Bảo mật Website

Authentication Yếu Sử dụng thư viện, plugin không tốt DoS – DDoS – SPAM Cross Site Scripting – XSS Cross Site Request Forgery - CSRF

Page 19: Reveal the Power of Php

3.2. DOS - DDOS

DOS : Deny Of Service DDOS: Distributed DOS

Page 20: Reveal the Power of Php

3.2. DOS – DDOS…

Sử dụng trang điều hướng Sử dụng cơ chế Session CAPTCHA …sử dụng tầng khác trong mô hình web

Page 21: Reveal the Power of Php

3.3. Bảo mật Session

Session Fixation Session Hijacking

Page 22: Reveal the Power of Php

3.3. Session Fixation

Page 23: Reveal the Power of Php

3.3. Session Fixation

Kiểm tra các cấu hình Hỗ trợ regenerate session id, logout

Page 24: Reveal the Power of Php

3.4. Hệ thống File

File Including Injection Remote File Inclusion Command Injection Shared Hosting, Local Attack

Page 25: Reveal the Power of Php

3.4. File Including Injection

Page 26: Reveal the Power of Php

3.4. File Including Injection

Page 27: Reveal the Power of Php

3.4. Remote File inclusion

Page 28: Reveal the Power of Php

3.4. Remote File inclusion

Page 29: Reveal the Power of Php

Large-scale PHP4

Page 30: Reveal the Power of Php

4.1. Cache

Page 31: Reveal the Power of Php

4.2. Điện toán đám mây

Page 32: Reveal the Power of Php

4.3. Cân bằng tải

Page 33: Reveal the Power of Php

4.4. MySQL Replication

Page 34: Reveal the Power of Php

4.5. NoSQL

Page 35: Reveal the Power of Php

4. Large-scale PHP

Cache Điện toán đám mây (Cloud Computing) Cân bằng tải MySQL Replication, Database Partitioning “NoSQL” Database Clustering Message Queue (Job Queue…) XMPP Lưu trữ phân tán (Distributed Data Storage)

Page 36: Reveal the Power of Php

Công cụ phát triển5

Page 37: Reveal the Power of Php

5. Công cụ phát triển

PHP: PhpEd, Zend Studio, PHP Manual…

Database: MySQL Workbench, PhpMyAdmin…

HTML: Notepad++, Dreamweaver…

CSS: Dreamweaver, Rapid CSS

Javascript: Aptana…

Source Control: Subversion (SVN) …Google

Page 38: Reveal the Power of Php

Zend PHP 5 Certification

Zend Framework Certification

Chứng chỉ ZCE - Zend6

Page 39: Reveal the Power of Php

6. Zend Yellow Pages

Page 40: Reveal the Power of Php

6. Zend Certification

Page 41: Reveal the Power of Php

6. Zend Certification Exam

PHP Basics

Object Oriented Programming

PHP 4/5 Differences

Streams and Network Programming

Security

Functions

Page 42: Reveal the Power of Php

6. Zend Certification Exam

Databases and SQL

Strings and Patterns

Arrays

XML and Web Services

Web Features

Design and Theory

Page 43: Reveal the Power of Php

6. Zend Online Exam Interface

Page 44: Reveal the Power of Php

6. Exam Mock Test

Page 45: Reveal the Power of Php

6. Exam Mock Test Result

Page 46: Reveal the Power of Php

…Võ Duy Tuấn

[email protected]

…Web Freelancer

… PHP Trainer

… Zing Me - Interactive Designer @VINAGAME

you_forgotif

Page 47: Reveal the Power of Php

It’s time to query me…

Thanks you!