![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
文章平均质量分 66
hcmfys2009
这个作者很懒,什么都没留下…
展开
-
php apache
LoadModule php5_module d:/php/php5apache2_2.dllAddType application/x-httpd-php .php原创 2010-10-11 13:01:49 · 62 阅读 · 0 评论 -
php 转码类
Charset::convert(string input,string incharset,string outcharset) Charset::unescape(string escaped,string outcharset) Charset::escape(string string,string incharset) Charset::jsondecode(strin...原创 2010-10-15 09:53:54 · 136 阅读 · 0 评论 -
PHP编码转换
PHP编码转换函数mb_convert_encoding与iconv的使用说明文章分类:PHP编程 mb_convert_encodeing GBK To UTF-8 例 Php代码 < ?php header("content-Type: text/html; charset=Utf-8"); echo mb_convert_encoding("你系我的友仔", "U...原创 2010-10-15 09:25:28 · 95 阅读 · 0 评论 -
php apache 配置文档
# # 基于 NCSA 服务器的配置文件 由 Rob McCool 编写,龙子翻译 # # Apache服务器主配置文件. 包括服务器指令的目录设置. # 详见 # # 请在理解用途的基础上阅读各指令。 # # 再读取此文档后,服务器将继续搜索运行 # E:/Program Files/Apache Group/Apache/conf/srm.conf # E:/Pro...原创 2010-10-15 09:08:24 · 99 阅读 · 0 评论 -
php图片支持中文
<?php // 设定图像编码头部 header("Content-type: image/png"); // 创建图像 $im = imagecreatetruecolor(800, 600); //创建颜色 $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128...2010-10-14 10:42:55 · 99 阅读 · 0 评论 -
php 图像操作
<?php // 设定图像编码头部 header("Content-type: image/png"); // 创建图像 $im = imagecreatetruecolor(800, 600); //创建颜色 $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128...2010-10-14 10:16:04 · 77 阅读 · 0 评论 -
关于解决"cannot modify header information - headers already sent by"的错误
cannot modify header information - headers already sent by (......)。 其实已经实现需要的效果了,就是这个错误信息看着不爽,网上找了很多办法,综合使用得到的解决方法是 1在页面顶部的php标签中加入ob_start(); 2在返回的信息下面加入ob_end_flush(); 这样就可以屏蔽错误信息的现实了 另外转一下其他人...原创 2010-10-14 09:33:04 · 150 阅读 · 0 评论 -
php 连接数据库
使用php smart 编写php 比较清晰的代码流程 <? $link=mysql_connect("localhost","root","123456") or die("conenction error"); mysql_select_db("mysql",$link); $result=mysql_query("show tables ",$link)2010-10-13 16:22:37 · 73 阅读 · 0 评论 -
php mysql 配置
将mysql安装到指定目录,如我的是d:/mysql 如下载的是非安装的mysql压缩包,直接解压到指定目录就可以了 然后点击D:\mysql\bin\winmysqladmin.exe这个文件 其中D:\mysql是你的mysql安装目录 输入winmysqladmin的初始用户、密码 (注:这不是mysql里的用户、密码)随便填不必在意 确定之后你的右下角任务的启动栏会出现一个红绿灯的图标,红...原创 2010-10-13 15:05:05 · 210 阅读 · 0 评论 -
js 分页(转载)
function showPages(name) { //初始化属性 this.name = name; //对象名称 this.page = 1; //当前页数 this.pageCount = 1; //总页数 this.argName = 'page'; //参数名 this.showTimes = 1; //打印次数 } s...原创 2010-10-13 14:17:31 · 65 阅读 · 0 评论 -
smart 学习
<? require 'libs/Smarty.class.php'; $smarty = new Smarty(); $smarty->template_dir="theme/html"; $smarty->compile_dir="theme/cache"; //$smarty->config_dir="theme/cache"; //$smarty...原创 2010-10-13 14:16:24 · 153 阅读 · 0 评论 -
php存储过程输出参数
<!-- create procedure in_out (in parameter integer) begin declare variable varchar(20); if parameter=1 then set variable='MySQL'; else set variable='PHP'; end if; insert into userinfo(user...原创 2010-10-18 10:29:27 · 141 阅读 · 0 评论