PHP Web Development Program (development of new people must read) _php tutorial

Source: Internet
Author: User
Tags php web development sql injection prevention
First, development members

A) Project manager
b) Page Art
c) Page Development
d) Service-side program development
e) system and data management
f) test and version control

Second, the site group to develop a concise process


III. Development tools and environment

A) server configuration
I. Web server: FREEBSD6.1+APACHE2.0+PHP5.0,SVN version Control Service (test machine only).
II. Database server: WIN2003 server+sql Server 2000+mysql5.0,clustered server Cluster service, mail server.
III. 100m/1000m SWITCH
b) Development tools
I. Front desk: Macromedia Flash 8.0, Macromedia Dreamweaver 8.0, Adobe photoshop CS
II. Backstage: Zend Studio 5.2, SQL Server Enterprise Manager, PhpMyAdmin

Iv. Technical Rules

A) browser-compatible policy: compatible with IE5.0 and above, and compatible with FireFOX2.0 or more browsers.
b) Search engine optimization: Focus on Baidu, Google, Yahoo Search optimization, make clear and clear site map.
c) Character encoding rules: Chinese website rate adopts GB2312 character standard.
d) file and folder naming: For compatibility with Win32 and UNIX systems, one rate is named with lowercase letters.
e) Common file naming rules:
I. Default home: Index.htm, index.html, index.php
II. Main CSS file: style.css
III. Main JS file: main.js
Iv. Main program configuration file: config.php
f) Uniform naming of common file directories
I. Picture catalog:/images or/pic
II. CSS Style Catalog:/css
Iii. JS Script program directory:/JS
Iv. template file directory:/TPL
V. Class or Component catalog:/class or/lib
g) page Scripting specification: Unified use of JavaScript
h) class, function, variable name in code: uniform use of approximate English word names such as: Defaultclass or Default_class
i) Code comment rules: The functions or procedures in all programs must be annotated with exact comments.
j) Database-related rules
I. data table and field naming rules: All lowercase letters are named, and the naming prefixes are categorized, such as: User table Group, User_passport, User_info, User_service ....
Ii. Date Type field: Uniform use of Unix timestamps, char (12)
Iii. PRIMARY key naming: All tables must establish a primary key named after the ID.
k) Template Component rules: Unified use of compatible version of Smarty, unified cache directory, easy to control under UNIX permissions.
L) Database virtual layer: Uniform use of ADODB or PDO,SQL statements to be compatible with existing mainstream database rules.
m) factory pattern development rules: the development or inheritance of component classes with comm.php, unified control file invocation IO and instantiation of classes.
N) Object-oriented development rules: All functions must exist in the same way as the class---> process.
o) SQL encapsulation Rules: All SQL statements and database queries must exist in the process.
p) URL steering rules: To optimize the search engine, try to use Apache Mod_rewrite module to beautify the URL, such as: http://www. Bkjia.com/action.php?id=123 converted to: http://www. Bkjia.com/action/id/123 or http://www. Bkjia.com/action/id_123.html

V. Website security and Maintenance strategy

A) server and database security:
I. Establish a sound virus defense mechanism, install firewalls, and shut down any unnecessary ports and services on the server.
II. Unified management User rights, regular tracking of user and system events, Periodic review system logs.
b) Disaster recovery and backup mechanism:
I. Set up a database cluster, at least one server to synchronize data, to ensure that the database system can automatically transfer to normal server stable operation when the accident occurs.
II. backup files and data regularly and save data and files in various ways.
c) Program security Policy:
I. SQL INJECTION PREVENTION: resolutely filter the unpredictable illegal characters, strictly do the database query, updated SQL statement test.
II. Do not use unsolicited third-party source code, not easily copy the unknown to the server.

http://www.bkjia.com/PHPjc/486478.html www.bkjia.com true http://www.bkjia.com/PHPjc/486478.html techarticle ( a) development member a) Project Manager B) page Art c) page Development D) service-side program development e) system and Data management F) test and version control second, the website group Development Concise process Three, open ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.