易截截图软件、单文件、免安装、纯绿色、仅160KB

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"


相关文档:

php 技术内幕学习2

1.php 数据类型:浮点型,字符串,整形,逻辑型
2.$a="test"; print($a); 在php.ini 中设置error_reporting=E_ALL 警告状态时,会有提示。此用于测试未定义的变量。可以使用isset()检测变量是否存在,unset清除变量(),常量定义define("a","test");定义的常量具有全局作用。define 无法定义对象的数据结构,不过可以先存储变量 ......

php 模板写法


<?php
/* @author: zhuyubing@gmail.com */
class Template{
        var $code;
        function Template($template){
            $this->code = implode('', @file($tem ......

how to install apache, PHP and MySQL on Linux 3

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 FILES数组的使用

$_FILES['myFile']['name']   客户端文件的原名称。 
$_FILES['myFile']['type']   文件的 MIME 类型,需要浏览器提供该信息的支持,例如"image/gif"。 
$_FILES['myFile']['size']   已上传文件的大小,单位为字节。 
$_FILES['myFile']['tmp_n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号