wzh789 发表于 2017-4-6 12:22:50

Practical Web 2.0 Applications With PHP读书笔记(1)

最近想要重新梳理一遍PHP的学习,重点面向WEB2.0应用的学习,找了一本Practical Web 2.0 Applications With PHP 2008来读。我想,对于使用其他语言开发WEB2.0应用也是会很有帮助的。一起学起吧。全英文的电子书籍看起来会稍微吃力些
1.搜索引擎优化。基于WEB标准进行开发。
2.PHPDoc风格的的注释。必须重视的良好的编程风格:
<?php
/**
* mySimpleFunction
*
* A simple function to return a friendly message
* to the user based on their name and age
*
* @param string $name The name of the user
* @param int $age The age of the user
* @return string The generated welcome message
*/
function mySimpleFunction($name, $age)
{
$str = sprintf('Hello %s, your age is %d', $name, $age);
return $str;
}
?>
3.注意网络安全防范,防止各类攻击
4.应用程序日志,出于安全与表现的考虑,程序运行过程中生成日志是非常重要的。
5.可配置性与可扩展性。
待续
页: [1]
查看完整版本: Practical Web 2.0 Applications With PHP读书笔记(1)