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"
相关文档:
memcached本地windows系统测试
用的是windows系统。
1.下载Memcache for win32
下载地址: http://jehiah.cz/projects/memcached-win32/
选择memcached 1.2.1 for Win32 binaries (Dec 23, 2006) 是exe的程序
memcached.exe -d install
memcached -d start
2.下载php_memcache.dll
下载地址: http://www.wesoho.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 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 ......
过年了,也涨了一岁了,感觉没有长进啊!
唉!
年前参加了中国电信的面试。
感觉很一般,连SQL全称是什么都不懂,还好意思自称熟练运用MYSQL,唉!
过完年,要开始为实习而奔波了。
网龙看来是没希望了。
只能进一些比较一般的公司学习学习了。
从今天开始,认真看PHP100的最新几个视频。
开始通读DZ的程序,注解上 ......
<?PHP
/**
* patServer
* PHP socket server base class
* Events that can be handled:
* * onStart
* * onConnect
* * onConnectionRefused
* * onClose
* * onShutdown
* * onReceiveData
*
* @version 1.1
* @author &n ......