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.php 数据类型:浮点型,字符串,整形,逻辑型
2.$a="test"; print($a); 在php.ini 中设置error_reporting=E_ALL 警告状态时,会有提示。此用于测试未定义的变量。可以使用isset()检测变量是否存在,unset清除变量(),常量定义define("a","test");定义的常量具有全局作用。define 无法定义对象的数据结构,不过可以先存储变量 ......
<?php
/* @author: zhuyubing@gmail.com */
class Template{
var $code;
function Template($template){
$this->code = implode('', @file($tem ......
弄了半天, PHP 终于能调用我的C# dll 了.
该死的,我对C# COM注册一向不了解, PHP 文档上只给PHP那部分内容,没告诉我怎么弄dll
我还傻兮兮的用 Regsvr32 注册那个c# dll.
背景:
Windows xp sp3 ; apache 2.2.14 ; php 5.2.12 ;
VS2010 beta ;
语言:
PHP5 , C#
C#部分:
创建一个 C# Class Library . (dll) ......
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, but most of the steps ought to be valid for all
Linux-like operating ......