2010年5月4日

摘要: 1、yum install subversion This will check for any dependencies and then prompt you to install those and subversion itself. Type in "y" and <enter> to install these. Unfortunately it doesn't set... 阅读全文
posted @ 2010-05-04 11:25 Jason-zy 阅读(243) 评论(0) 推荐(0)

2010年3月15日

摘要: 安装方法我参照了一位哥们的http://www.21andy.com/blog/20100219/1701.html 就不写了用linux之前要好好熟悉下文件权限那块,我用的少这块走了不少弯路。yum install是好东西不过往往新手容易不知道配置文件,程序安装在什么地方了命令:whereis php.ini 查找 php.ini /etc/php.ininginx配置文件nginix.conf... 阅读全文
posted @ 2010-03-15 16:11 Jason-zy 阅读(268) 评论(0) 推荐(0)

2010年3月10日

摘要: 客户浏览器禁用了Cookie可以考虑重写url加上phpsessionid output_add_rewrite_var ()用这个函数可以实现output_add_rewrite_var('PHPSESSID',session_id ());自动会在URL上面加上PHPSESSID; 阅读全文
posted @ 2010-03-10 11:17 Jason-zy 阅读(352) 评论(1) 推荐(0)

2010年3月8日

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<?php$Adminroot=dirname(__FILE__);$path=str_replace("/admin","/upload/indexAd",$Adminroot);if(iss... 阅读全文
posted @ 2010-03-08 16:42 Jason-zy 阅读(360) 评论(0) 推荐(1)

2010年1月13日

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<?php/*Executeapreparedstatementbypassinganarrayofvalues*/$sth=$dbh->prepare('SELECTname,colou... 阅读全文
posted @ 2010-01-13 10:31 Jason-zy 阅读(773) 评论(0) 推荐(0)
 
摘要: 安装配置网上搜了。PHP5.1.4以后都带了这个扩展 在php.ini 把“;”号去掉就行1、连接数据库 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--try{$dbh=newPDO('mysql:host=localho... 阅读全文
posted @ 2010-01-13 10:24 Jason-zy 阅读(248) 评论(0) 推荐(0)

2009年12月10日

摘要: 网上很多都是php_mysql .dll没法加载的那个是因为少了个php_msql的。这个网上很多我的情况是因为版本不行我服务器php 5.2.4 我用的也是php 5.2.4 的php_dio.dll的扩展可是还是不行参照网上办法我试过了拷贝php底下的 *.dll 前几页的方法都试完了1:php是不需要拷贝dll文件到c:windows system32底下的2:学会了一个软件很不错 Proc... 阅读全文
posted @ 2009-12-10 10:53 Jason-zy 阅读(225) 评论(0) 推荐(0)
 
摘要: 接到任务对短信猫进行发短信功能开发。服务商提供了开发包。汗一眼看去 vb c# java c++ N多,找了许久咋没php ,咱平台是php的啊没办法google搜了一遍,找到了一个http://hi.baidu.com/baolihou/blog/item/ba9d7488b7ce54b40f244493.html代码我就参照他的了,不过要使用dio 的function 需要载入php_dio.... 阅读全文
posted @ 2009-12-10 10:49 Jason-zy 阅读(1566) 评论(0) 推荐(0)

2009年11月30日

摘要: 一,获取指定日期的unix时间戳 strtotime(”2009-1-22″) 示例如下:   echo strtotime(”2009-1-22″) 结果:1232553600   说明:返回2009年1月22日0点0分0秒时间戳   二,获取英文文本日期时间 示例如下:   便于比较,使用date将当时间戳与指定时间戳转换成系统时间   (1)打... 阅读全文
posted @ 2009-11-30 16:11 Jason-zy 阅读(193) 评论(0) 推荐(0)

2009年11月25日

摘要: 自己在网络上看到得以篇好文章觉得不错,拿出来大家一起分享! 干程序员是一项很辛苦的工作,要成为一个高水平的程序员尤为艰难。这是因为计算机软件技术更新的速度越来越快,而这些技术大多来源于英语国家,我们在引进这些技术时往往受到语言障碍的制约,严重影响到对新技术的理解和消化。首先编程本身就依赖于英语,虽然现在技术的发展,可以使得某些开发工具在变量名和字段名中支持中文,但还未发现能够完全使用中文的编程语句... 阅读全文
posted @ 2009-11-25 12:33 Jason-zy 阅读(245) 评论(0) 推荐(0)