- 博客(14)
- 收藏
- 关注
原创 Linux下java环境变量设置的完整步骤
从java.sun.com上下载JDK的安装文件,一般是jdk1.5.0_10_XXXX.bin的格式。 解开生成JDK目录,这里假设JDK安装在/usr/java/jdk1.5.0_10中: 代码: sudo chmod 755 jdk1.5.0_10_XXXX.binsudo ./jdk1.5.0_10_XXXX.bin sudo mkdir /usr/j...
2010-10-29 13:32:17 78
原创 类成员函数指针浅析
有这样一行代码: typedef CPB_RETVAL (CPBprb_Prb::*CPBprb_action)(CPBprb_Prb &, unsigned); 其中CPB_RETVAL是一个enum类型,CPBprb_Prb是一个类,CPBprb_action在代码中其他地方没有找到定义。因不知这行代码所为何意, 承蒙众多高手赐教,才知上段代码定义了成员函数指针类型CPBp...
2010-10-20 14:34:54 93
原创 php存储过程输出参数
<!--create procedure in_out (in parameter integer)begindeclare variable varchar(20);if parameter=1 thenset variable='MySQL';elseset variable='PHP';end if;insert into userinfo(user...
2010-10-18 10:29:27 155
原创 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 147
原创 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 99
原创 php apache 配置文档
## 基于 NCSA 服务器的配置文件 由 Rob McCool 编写,龙子翻译## Apache服务器主配置文件. 包括服务器指令的目录设置.# 详见 ## 请在理解用途的基础上阅读各指令。## 再读取此文档后,服务器将继续搜索运行# E:/Program Files/Apache Group/Apache/conf/srm.conf # E:/Pro...
2010-10-15 09:08:24 107
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 106
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 83
原创 关于解决"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 157
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 79
原创 php mysql 配置
将mysql安装到指定目录,如我的是d:/mysql 如下载的是非安装的mysql压缩包,直接解压到指定目录就可以了 然后点击D:\mysql\bin\winmysqladmin.exe这个文件 其中D:\mysql是你的mysql安装目录 输入winmysqladmin的初始用户、密码 (注:这不是mysql里的用户、密码)随便填不必在意 确定之后你的右下角任务的启动栏会出现一个红绿灯的图标,红...
2010-10-13 15:05:05 222
原创 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 74
原创 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 161
原创 php apache
LoadModule php5_module d:/php/php5apache2_2.dllAddType application/x-httpd-php .php
2010-10-11 13:01:49 69
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人