PHP程序调试日记
问题一:cacti如法正常登录,没有报PHP程序错误
解决过程解决过程:开启PHP报错显示(在调试时,一直卡在这儿,由于是服务器上,没有开启报错程序)display_errors = On
发现报Warning: session_start() [function.session-start]: open(/usr/local/apache/phpsession/h/s/c/sess_hschnfd9dl365a5ibpf6jh17q7, O_RDWR) failed: No such file or directory (2) in /www/web/cacti/include/global.php on line 134
没有找到session的存储位置
发现php.ini中session保存的位置设置为session.save_path = "3;/usr/local/apache/phpsession"
解决方法: 修改php.ini
方法1.session.save_path = "/tmp"
方法2.session.save_path = "3;/usr/local/apache/phpsession"
相关文档:
1. 从php4 开始增加了编译部分,php4将在运行前检查整个脚本的语法,在此基础上编译所有的函数,并且运行脚本的主要部分,如果php 成功创建了指定的html,则说明脚本中不存在错误,函数编译正确。已实现编译一次,多次运行。php4 开始使用.php 为扩展名
2.php4 支持com,用户可通过函数com,com_get,com_invoke,com_load,com_ ......
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 ......
现在对PHP感觉越来越顺手了,对HTML的标签越来越熟悉了,可是对PHP的插件的认识还为之甚少。
但是,说实话,目前的我貌似也不需要使用PHP的插件,用插件的目的可能是为了显得比较牛吧,呵呵。
但是还是踏踏实实的学习吧,毕竟额的C++还没有学,对于PHP的封装和编程一点也不了解。 ......
本文转自http://xfs39.javaeye.com/blog/411508 感谢作者分享
php单引号和双引号的区别
今天,有一新学PHP的网友问了茶农一个问题:“单引号和双引号的区别和用法?”,现将答案总结了下,写成这篇小短文。
" "双引号里面的字段会经过编译器 ......