php八荣八耻
以动手实践为荣 , 以只看不练为耻;
以打印日志为荣 , 以单步跟踪为耻;
以空格缩进为荣 , 以制表缩进为耻;
以单元测试为荣 , 以人工测试为耻;
以模块复用为荣 , 以复制粘贴为耻;
以多态应用为荣 , 以分支判断为耻;
以Pythonic为荣 , 以冗余拖沓为耻;
以总结分享为荣 , 以跪求其解为耻;
相关文档:
1. 从php4 开始增加了编译部分,php4将在运行前检查整个脚本的语法,在此基础上编译所有的函数,并且运行脚本的主要部分,如果php 成功创建了指定的html,则说明脚本中不存在错误,函数编译正确。已实现编译一次,多次运行。php4 开始使用.php 为扩展名
2.php4 支持com,用户可通过函数com,com_get,com_invoke,com_load,com_ ......
SESSION的使用
SESSION的作用很多,最多用的就是站点内页面间变量传递。在页面开始我们要session_start();
开启SESSION;
然后就可以使用SESSION变量了,比如说要赋值就是:$_SESSION['item']="item1";要得到值就
是$item1=$_SESSION['item'];,很简单吧。这里我们可能会使用到一些函数,比如说判断是不是
某SESSION变 ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1 operating systems, but most of the steps ought to be valid for all Linux-lik ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating ......