PHP WEB 应用组织与结构
-
Upload
honestqiao -
Category
Technology
-
view
1.755 -
download
9
description
北京地区PHP爱好者2010聚会[12月19日胜利举办,CU、ThinkinginLamp联办],Diogin主讲《PHP WEB 应用组织与结构》,详情见详情goo.gl/xCCxy或goo.gl/j89N9
Transcript of PHP WEB 应用组织与结构
- 1. PHP Web http://www.diogin.net 2010.12.19
2.
- PC
-
- QQ/Thunderbird/ /TortoiseSVN/Firefox/...
- /MID
-
- UCWeb/GGBook/Angry Birds/ /...
- Web
-
- /Gmail/ /Facebook/ /...
3. Web
- UI
- Web
4. PHPWeb
5. Web 6. 0. Web Web Web HTTP 7. 1. Web
- WebWeb
- HTML/CSS
- API JavaScript
- API== Win32 API
- RIA
- Firefox/IE/Chrome/Opera/Safari/...
8. 2. HTTP
- Web
- Web
- TCP /
- pipeline
9. 3. Web
- Web
- (sendfile)
- (FastCGI, uwsgi, SCGI, AJP, ...)
- (rewrite,headers,proxy,cache...)
- Apache/nginx/lighttpd/...
10. 4.
- Web
- PHP
- Python, Ruby, Java, C#, Perl, C, C++ ...
- php-fpm/uWSGI/tomcat/Mongrel/...
11. 5.
- epoll/kqueue/sendfile
- CDN
- nginx/lighttpd/...
- / NFS/MogileFS/FTP/ WebDAV/rsync/Hadoop/...
12. 6.
- Web
- ...
- MySQL/PostgreSQL/Tokyo Tyrant/ Redis/MongoDB/Cassandra/Sphinx/ Memcached/...
13. 7.
- MTA ( )
- ( )
- API (REST, SOAP, ...)
14. 8.
15. PHP Web 16. Web cache search data Web service 17. PHP PHP PHP load PHP FastCGI 18. PHP SAPI ( ) PHP ( ) Zend ( ) A B ... N TSRM ( PHP ) 19. PHP Web 20. 0.
21. 1.
- Modular -
- MVC -
- KISS/YAGNI -
- DRY -
- Design Patterns -
- DDD/RDD -
22. 2.
- (project)
- (system)
- (application)
- (module)
- (controller)
- (action)
- (method)
23. 3.
- (controller & action) (view/template) (helper)
- (visitor/request & response) (role) (session)
- (config) URL (router) (dispatcher)
- (filter) (form)
- (model) (service)
- (db, cache, mailer, search, ...)
24. 4.
- ( )
- ( )
- PHPCSS JavaScript
25. 5.
26. 6. 27. 6.app/ 28. 6. 29. 6.views/ 30. 6.layout 31. 6.page 32. 6.widgets/ 33. 6.config/
- custom.php -
- default.php -
- routes.php - URL
- URL
34. 6.data/
- log/ -
- share/ -
- tmp/ - Web
- var/ - Web
35. 6.
- form
- PHPSmarty (http://nosmarty.net)
36. PHP Web
- :-)
37. Q & A 38. http://www.diogin.net