- 博客(246)
- 资源 (29)
- 收藏
- 关注
原创 MySQL Query to Json
<br />/******************by garcon1986*********************/<br /> <br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html><br /><head><br /><title></title><br /></h
2010-10-13 04:12:00 2870
原创 安装image_graphviz的错误解决方案
/**********************by garcon1986************************/记录:这个问题花了我大半天的时间,半天的时间真是很痛苦,几乎已经frustrated,幸好最终还是解决了这个问题。幸好!!好吧,这个是我stackoverflow上发的帖子。全程描述:第一步:安装pear。第二步:利用pear命令安装image_graphviz。目前安装的是image_graphviz-1.2.1版本(stable release)。 命令有: cmd -> pear
2010-10-13 03:52:00 3333
原创 正则表达式总结
<br />/****************by garcon1986***************/<br /> <br />正则表达式主要的作用:分割,匹配,查找,替换<br /><br /><br />preg_match正则函数,以perl为基础<br />preg_match(mode,string subject, array matches)<br /><br />ereg正则函数,以posix基础(Unix, Script)<br /><br />ereg(mode, st
2010-10-13 03:30:00 635
原创 HTML表格
PHP是服务端语言HTTP Hypertext Transfer Protocol访问网站时,浏览器向服务器发送一个请求如:GET / HTTP/1.1Host: example.org服务器向浏览器发送一个回复如:HTTP/1.1 200 OKContent-Type: text/htmlContent-Length: 419JavaScript执行在客户端,并不与PHP交流,因此也不需要继续发送HTTP请求。能把数据从PHP传输到JavaScrip
2010-10-13 03:11:00 476
转载 正则表达式使用
<br />1. 引子<br /> 目前,正则表达式已经在很多软件中得到广泛的应用,包括*nix(Linux, Unix等),HP等操作系统,PHP,C#,Java等开发环境,以及很多的应用软件中,都可以看到正则表达式的影子。<br /> 正则表达式的使用,可以通过简单的办法来实现强大的功能。为了简单有效而又不失强大,造成了正则表达式代码的难度较大,学习起来也不是很容易,所以需要付出一些努力才行,入门之后参照一定的参考,使用起来还是比较简单有效的。<br /> 例子: ^.+@.+//
2010-10-13 03:08:00 570
原创 PEAR和PECL的区别及PCRE和POSIX的区别
/**************by garcon1986*******************/PEAR(PHP Extension and Application Repository)PHP扩展与应用程序库。PEAR是“一个可重用PHP组件的框架和发布系统”。PEAR可以下载、安装、升级及删除PHP脚本。使用PEAR包的时候,不必为了脚本的位置或者怎么找到它们而担心,扩展命令行接口(CLI)也很容易使用。PEAR是一个由社区推动的PHP项目,官方发布的PHP中就包含了PEAR。PECL
2010-10-13 02:54:00 2359
原创 PHP5 版本进化总结
/***************by Jiangong SUN****************/ PHP 5.0.0 Beta 1 - 2003-06-29 使用Zend Engine 2SQLite扩展捆绑到PHP并默认启动完全支持XML(Simplexml扩展,新的DOM扩展,新的XSL扩展,把DOM-XML和XSLT移植到PECL等)移除了捆绑的MySQL客户端
2010-10-13 02:45:00 1200
原创 Oracle数据库操作总结之一
/****************by Jiangong SUN***************/ RDBMS(Relational Data Base Management System)ER图(Entity Relationship) Primary key主键Foreign key外键 Data Definition Language (DDL) state
2010-10-13 02:39:00 515
原创 ADODB数据库抽象层操作
/****************by Jiangong SUN************///include fileinclude("adodb5/adodb.inc.php");include("adodb5/adodb-pager.inc.php");//set variables$server = 'localhost';$user = 'charles
2010-10-11 22:17:00 778
原创 mysql数据库基本操作总结
/*Author: Jiangong SUN*/Last update: 29/05/2013 shell> mysql --help连接mysql:shell> mysql -h localhost -u user -pEnter password: ******断开mysql连接:mysql> quit / ctl+c不执行正在输入的
2010-09-23 04:56:00 734
原创 OOP初探
/**************by Jiangong SUN******************/ 面向对象的特点:继承(inheritance),多态(polymorphism),封装(encapsulation)缺点:1. 小项目中需要更多的代码;2. 执行稍慢 类就是对象的蓝图/模板Business logic 和 view logic 分离类的方法用于操作他自己
2010-09-16 07:31:00 518
原创 print和echo的区别
/**************By Jiangong SUN******************/print和echo的区别:1. echo可以输入多个字符串,而print不能。print "hello"."world"; //成功echo "hello"."world"; //成功print "hello","world"; //失败echo "hello","w
2010-09-14 04:55:00 804
原创 面试总结之Datavance
/*********by Jiangong SUN*******/ 1. PHP命令的信息手册2. 获得来自表格的数据的方法$_GET[''],$_POST['']3. 定义php脚本里的cookiesetcookie()4. 定义php脚本的头文件header()5. 头文件里重定向页面的方法header("Location:htt
2010-09-11 11:23:00 661
原创 PHP CLI模式
<br />/***************by garcon1986***************/<br /> <br />首先,进入PHP的CLI(Command line interface) mode<br /><br />cyguin-> $ ./php --ini(显示配置文件信息)<br />将显示:<br />configuration file(php.ini) path: c:/Windows<br />Loaded configuration file: c:/wam
2010-09-11 11:19:00 4458
原创 面试总结之OPL
<br />/*************by garcon1986****************/<br /> <br />1. PHP的特点:<br />快速开发,面向对象,跨平台,适合中小企业应用的web开发语言<br /><br />2. 如何在MySQL中优化SQL的查询时间<br />1)如果没有特殊需要,使列长尽量短。如:如果列长最长是40位,不要使用char(255)<br />使用适合的存储引擎。例如MyISAM数据表,最好用定长的列代替变长的列,不适用varchar()。
2010-09-10 22:00:00 1128
原创 Date/Time函数总结
/*************by Jiangong SUN*********************/ //set default timezonedate_default_timezone_set('Europe/Paris');echo date_default_timezone_get().''; //dayecho date('d-D-j-l-N-S-w-z')
2010-09-02 05:49:00 949
原创 Cygwin工具介绍
Cygwin is a Linux-like environment for Windows. Cygwin就是在windows下模拟linux环境。我一般使用它来管理和操作MySQL数据库。当然还能支持很多的功能,比如linux administration, oracle,phyton等。cygwin对于windows95,98,Me的支持,在1.7版本中被取缔了。It consists of two parts:# A DLL (cygwin1.dll) which acts as a Linux
2010-09-02 04:18:00 1079
原创 MySQL Workbench 5.2.26介绍
<br />/****************by garcon1986************/<br /> <br />MySQL Workbench provides DBAs and developers an integrated tools environment for:Database Design & Modeling SQL Development (replacing MySQL Query Browser) Database Administration (replacing MyS
2010-09-01 06:18:00 1387
原创 CSS3新特性
<br />/*********by garcon1986******/<br /> <br /> <br /> <br />1) border边框<br /><br />border-color: 边框颜色<br />如:<br />border: 8px solid #000;<br />-moz-border-bottom-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;<br />-moz-border-top-colors:
2010-08-28 06:29:00 922
原创 8月份面试总结之TLconseil
面试总结:TLconseil:1. Doctype是什么? 声明位于文档中的最前面的位置,处于 标签之前。此标签可告知浏览器文档使用哪种 HTML 或 XHTML 规范。该标签可声明三种 DTD 类型,分别表示严格版本、过渡版本以及基于框架的 HTML 文档。HTML 4.01 规定了三种文档类型:Strict、Transitional 以及 Frameset。1)HTML Strict DTD:如果您需要干净的标记,免于表现层的混乱,请使用此类型。请与层叠样式
2010-08-26 06:11:00 911
转载 Quicks模式和Strict模式对比
<br />1、quirks mode和strict mode是浏览器解析css的两种模式,或者可以称之为解析方法。目前正在使用的浏览器这两种模式都支持。<br /><br />2、历史原因。<br />当早期的浏览器Netscape 4和Explorer 4对css进行解析时,并未遵守W3C标准,这时的解析方式就被我们称之为quirks mode(怪异模式),但随着W3C的标准越来越重要,众多的浏览器开始依照W3C标准解析CSS,仿照W3C标准解析CSS的模式我们叫做strict
2010-08-26 04:27:00 2147
原创 Doctype总结
What is it?The !DOCTYPE declaration is a top-level tag-like reference known as a Public Text Identifier. It should appear at the very beginning of an HTML/XHTML document in order to identify the content of the document as confo
2010-08-26 03:13:00 1089
原创 TortoiseSVN本地配置
<br />/***************by garcon1986*******************/<br /> <br />1. 下载TortoiseSVN<br /> <br />从http://tortoisesvn.net/downloads 中下载TortoiseSVN,并可以安装中文安装包。<br /> <br />2. 配置本地目录<br /><br /> <br />首先,在目录中创建一个文件夹。如: G:/SVN/test-svn,打开此文件夹并右击选择TortoiseSVN->
2010-08-15 06:11:00 2153
原创 MySQL 视图
<br />/****************by garcon1986*******************/<br /> <br /> <br /> <br />CREATE TABLE IF NOT EXISTS `testtable1` ( `pk_tId` int(11) NOT NULL AUTO_INCREMENT, `firstName` varchar(20) DEFAULT NULL, `lastName` varchar(20) DEFAULT NULL, `a
2010-08-14 04:13:00 585
原创 MySQL全文搜索
/*************by Jiangong SUN********************/ create database testDB:use testDB; create table testTable( pk_tId int auto_increment not null, firstName varchar(20), lastName varchar(20),
2010-08-14 04:11:00 621
原创 Eclipse下安装配置SVN
<br />/*************by garcon1986******************/<br /> <br /><br />1. 安装subclipse<br /><br />打开Eclipse,Help -> Install New software <br /><br />在URL中输入subclipse,会弹出:subclipse - http://subclipse.tigris.org/update_1.6.x,选中然后选择列表中的Subclipse。进行安装。
2010-08-14 03:06:00 1063
原创 IBM笔记本使用法语输入法,如何键入法语特殊字符?
/*Author: Jiangong SUN*/ 法语键盘: IBM T60,T61键盘: 首先,介绍一下法语字符:l'accent aigu(闭音音符): él'accent grave(开音音符): è , àl'accent circonflexe(长音音符): â î ê û ô le tréma(分音符):
2010-08-14 00:05:00 3334
原创 php5概念总结之一
/***********by garcon1986*******************/1. $this变量是对当前对象的引用,$this->var; $this->method();2. php5中的变量和常量称为property,函数称为method.声明属性://invalidpublic $var = 'hel'.'lo';public $var2 = helloEOD;public $var3 = 1+2;public $var4 = self::Static
2010-08-12 20:42:00 719
原创 superglobals超全局变量之$GLOBALS, $_GET, $_POST, $_FILES, $_REQUEST, $_SESSION 等
<br />/*****************by garcon1986********************/<br /> <br /><?php<br /><br />//$GLOBALS — References all variables available in global scope<br />function test(){<br /> $x = 'local x';<br /> echo "global scope ".$GLOBALS['x']."<br
2010-08-06 09:15:00 1094
原创 superglobals超全局变量之server
/**********by Jiangong SUN*******************/ //$_SERVER -- $HTTP_SERVER_VARS [deprecated] — Server and execution environment information//test url: http://localhost/superglobal.php?id=1&name
2010-08-06 08:41:00 783
原创 print_r 和var_dump的区别
/*************by Jiangong SUN******************/ The var_dump function displays structured information about variables/expressions including itstype and value. Arrays are explored recursively
2010-08-06 04:56:00 1964
原创 reference引用
/***************by Jiangong SUN***************/ //$a =& $b;//$a和$b完全相等,指向了同一个内存地址。如果a改变了值,b也将改变值。//Note: $a and $b are completely equal here. $a is not pointing to $b or vice versa. $a and $
2010-08-06 04:15:00 693
原创 变量变量和变量函数
<br />/**********by garcon1986***********/<br /><?php<br />//变量函数:当一个变量后有圆括号,php将寻找与变量的值同名的函数,并且尝试执行它。<br /><br />function toto(){<br /> echo "toto function";<br />}<br />$to = 'toto';<br />$to();<br />echo '<br />';<br /><br />function
2010-08-03 21:24:00 738
原创 func_args函数
/**********by Jiangong SUN*************/ //func_num_args() return the numbers of parameters passed to a function//func_get_arg($arg_num) return a particular parameter //func_get_args() return
2010-08-03 18:54:00 692
原创 @操作符
/*By Jiangong SUN*/@$a = 1/0; @能不让错误代码显示,但是不能阻止错误的产生。因此使用它是危险的。 不是所有类型的错误都能被@获得并阻止。 php会先把代码解析成中间语言,用于更快的执行代码,但如果有语法错误,也会显示错误的。 如: @4sfa != sfa; Parse error: parse error in x
2010-07-30 22:34:00 774
原创 php换行符
/*****************by Jiangong SUN**********************/\t 水平tab\", \', \\ 特殊字符\n是换行,英文是linefeed,ASCII码是0xA\r是回车,英文是carriage return ,ASCII码是0xD 回车和换行的区别:\n, \r都是ascii码\n 换行是将光标移到下
2010-07-30 15:45:00 13901 2
原创 Objective-C学习笔记之一
/******by Jiangong SUN********/ int 整型float 单精度long 常整型double 双精度为什么编译器程序要求声明变量类型?这是因为计算机程序需要占用部分内存。编译器程序要为每个变量预留出内存空间。不同的数据类型,也就是int型和float型,需要不同的存储空间和代码,编译器程序要预留出足够的空间并使用正确的代码。% 取余
2010-06-27 23:50:00 4132
原创 CSS 小总结
CSS单位% percentagein inchcm centimetermm millimeterem 1em is equal to the current font size. 2em means 2 times the size of the current font. E.g., if an element is displayed with a font of 12 pt, then '2em' is 24 pt. The 'em' is a very useful unit
2010-06-27 23:47:00 699
原创 PHP中extract和addslashes的使用
/**************by garcon1986*************/extract 用法: "blue", "size" => "medium", "shape" => "sphere");extract($var_array, EXTR_PREFIX_SAME, "wddx");echo "$color, $size, $shape, $wddx_size/n";?>
2010-06-10 20:07:00 782
JavaScript DOM 编程艺术(含源码)
2010-01-14
Excel VBA 开发技巧 800例
2009-12-18
PHP Programming with PEAR XML, Data, Dates, Web Services, and Web APIs
2009-10-17
PHP and Smarty on Large-Scale Web Development
2009-10-17
Beginning Javascript with DOM Scripting and Ajax (From Novice to Professional)
2009-10-16
Beginning PHP and MySQL From Novice to Professional, Third Edition PDF
2009-10-13
Beginning PHP and MySQL 5 From Novice to Professional, Second Edition
2009-10-13
vb精华文摘,共分10篇。
2009-10-08
EXCEL.2007.MACROS.MADE.EASY.Oct.2008
2009-10-08
Pro. PHP Patterns, Frameworks, Testing and More
2009-10-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人