
Language-php
jichunlai
学着生活
展开
-
cakephp配置问题
php5.3 and mysqlnd authentication issue Tags : php symfony Upgrading a system is always fun and full of headaches, my last one was with the new mysqlnd extension from php 5.3. I cannot manage to c原创 2012-09-04 11:21:34 · 1682 阅读 · 0 评论 -
PHP编译安装参数说明
参数太多得经常查看 在Linux下安装PHP,源代码方式安装,总需要配置很多参数。这里列出常用配置参数,并详细用中文解释说明了。 给大家一些参考./configure --prefix=/usr/local/PHP php 安装目录 --with-apxs2=/usr/local/apache/bin/apxs 让Ap转载 2012-09-06 07:24:58 · 1450 阅读 · 0 评论 -
php15大错误
Common PHP Errors php15大错误 1.设置出错报告 首先你得打开你的 PHP出错报告。从安全角度来说,你可能会想到关闭它。但是如果程序出了问题,而你又需要debug的时候,你可以通过以下的PHP代码临时来打开出错信息。 Or you can add these lines to the root .htaccess: 或者,你可以将以下几行加入到.ht转载 2012-09-06 07:25:01 · 1640 阅读 · 0 评论 -
mimedecode php
文件:test.php <?php include_once("mimedecode.inc.php"); $file = "/tmp/xxx.eml"; $mimedecoder=new MIMEDECODE(file_get_contents($file)); $msg=$mimedecoder->get_parsed_message(); print_r($msg); $res =原创 2013-02-16 11:10:34 · 1668 阅读 · 0 评论 -
Apache、PHP、MySQL默认安装目录
Apache、PHP、MySQL默认安装目录 Apache (1)如果采用RPM包安装,安装路径应在 /etc/httpd目录下 Apache配置文件: /etc/httpd/conf/httpd.conf Apache模块路径: /usr/sbin/apachectl Web目录: /var/ww转载 2012-09-06 07:20:16 · 1632 阅读 · 0 评论 -
session_set_save_handler实例
<?php /* * usage as: * * date_default_timezone_set("PRC"); * set_session_mysql("localhost:3306", "root", "", "db"); * session_start(); * * #session table * CREATE TABLE `session` ( `id` varchar(原创 2013-06-25 22:51:30 · 987 阅读 · 0 评论 -
php标准输入,管道
stdin $handle = fopen("/dev/stdin", "r"); pipe $handle = fopen("php://stdin", "r");原创 2013-09-06 16:24:05 · 850 阅读 · 1 评论