PHP learning 1# - 安装、配置
来源:互联网 发布:k mean聚类算法 编辑:程序博客网 时间:2024/06/01 10:52
1、php.ini 配置
display_errors = On
error_reporting=E_ALL & ~E_NOTICE
E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
比如:变量未初始化,就会在页面显示Notice: Undefined variable:这样的提示,随不影响功能,但是页面显示就会出错。
date.timezone=Europe/Berlin(default)
修改为:Asia/Chongqing ,Asia/Shanghai ,Asia/Urumqi或者PRC
2、php乱码
----显示????
1) 网页文件head设置编码<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2) PHP页面在保存的时候使用utf-8编码保存,可以用记事本,UE,convertz802等转换文件
3) 在MYSQL中新建数据库的时候数据库 选择UTF-8编码既字符集 设定为 utf-8_unicode_ci(Unicode (多语言), 不区分大小写),
库里面 表table的 整理 设置为 utf-8_general_ci
表里面的每个字段的 整理 都设置为 utf-8_general_ci
可以用Alter 修改,或者用可视化工具修改(属性中设置),修改后保存重启。
4) 在PHP连接数据库的时候,也就是mysql_connect()之后加入
mysql_query("set names ’utf8’ ");
// mysql_query("set character_set_client=utf8");
// mysql_query("set character_set_results=utf8");
- PHP learning 1# - 安装、配置
- Deep Learning 环境配置 1:ubuntu+windows 双系统安装
- Shark Machine Learning Library 安装配置运行
- Shark Machine Learning Library 安装配置运行
- Deep Learning 开发工具Theano安装配置
- Shark Machine Learning Library 安装配置运行
- Deep Learning: win7安装Theano,配置GPU
- Deep Learning 开发工具Theano安装配置
- Shark Machine Learning Library 安装配置运行
- Deep Learning 开发工具Theano安装配置
- PHP配置,PHP模块安装
- php安装配置
- ice+php配置安装
- php安装配置
- php安装和配置
- PHP安装配置过程
- php apache 安装配置
- PHP安装配置要点
- join 算法
- Junit与spring集成测试
- org.springframework.security.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityC
- 专业术语中英对照表
- 查看删除ghost软件隐藏备份的文件
- PHP learning 1# - 安装、配置
- ssh配置
- java中介模式
- UML里边界类、控制类和实体类三类讲解(2011年系统分析师考点分析之一)
- CMMI简单入门
- Oracle 之N'st 处理
- 以中医理论来看待三峡工程
- 关于Plotyy的整理好的内容
- 抛弃WebService 在.NET4中用jQuery调用WCF