Home
Sign up
|
Sign in
shuang
Blog
Document
Bookmark
About
Home
Explore
Categories
Archives
Tags
RSS
Search
My Home
››
Explore
››
Categries
/
php
(13)
解决数据库中信息被截断问题
2009-07-07
php
$this->_db->query(’SET TEXTSIZE 300000′);
以后补充
Comments (2)
Views (225)
计算php脚本执行时间
2009-06-26
php
函数声名如下:
<?php
function getmicrotime(){
list($usec, $sec) = explode(” “,microtime());
return ((float)$usec + (float)$sec);
}
?>
<?php
$time_start = getmicrotime();
//要执行的脚本……..
$time_end = getmicrotime();
$time = $time_end - $time_start;
echo “<p><hr>用时:”.$time.”<hr>”;
?>
Comments (0)
Views (98)
EXTjs
2009-04-12
php
最近在捣鼓这个框架来做项目里的一模块,头大,但坚持。
一直想学习下EXTjs,却一直没有动力去学习,
正好任务需要,不得不,却欣然。
可惜英语底子太差劲,那文档硬是不入我眼,我脑,雪上加霜;
发现一个中文的文档,似乎不错,至少对我这种菜的看不懂的人来说,也是个敲门砖,哈哈
附网址如下:http://www.ajaxjs.com/docs/
感谢翻译的团队。让我有情趣看下去。:) …
Comments (0)
Views (141)
测试mssql中sql语句执行时间
2009-03-24
php
在MSSQL Server中通过查看SQL语句执行所用的时间,来衡量SQL语句的性能。
set statistics profile on
set statistics io on
set statistics time on
go
你执行的SQL语句
go
set statistics profile off
set statistics io off
set statistics time off
执行完后点消息即可。
补充说明:
set statistics io 检查查询所产生的 …
Comments (1)
Views (247)
xml画图的一些属性说明
2009-02-18
php
canvasBgColor='F6DFD9' canvasBaseColor='FE6E54' hovercapbgColor='FFECAA' hovercapborder='F47E00' divlinecolor='F47E00' yaxisminvalue='0' yaxismaxvalue='10000' numberPrefix='$' limitsDecimalPrecision='0' divLineDecimalPrecision='0'>
Comments (1)
Views (179)
逐步提升框架的性能(转载网络)
2009-02-03
php
php
zend
framework
mvc
oo
一、当前框架存在什么问题
目前主流的框架Zend Framework、Cakephp等都采用了MVC模式,同时实现了URL的路由分配。比如说http://www.xxx.com/user /login就会映射到userController对象中的loginAction方法,http://www.xxx.com/user /register对应为userController对象中的registerAction方法。这样对应的userController对象就很可能 是这样的。
class userController extends controller{
function
loginAction(){
//login
}
f …
Comments (1)
Views (204)
写在09春节前
2009-01-22
php
牛年希望焕然一新吧,各个方面!
Comments (0)
Views (147)
nvarcha与varchar
2009-01-21
php
1、各自的定义:
► nvarchar(n) : 包含 n 个字符的可变长度 Unicode 字符数据。n 的值必须介于 1 与 4,000 之间。字节的存储大小是所输入字符个数的两倍。所输入的数据字符长度可以为零。
► varchar[(n)]: 长度为 n 个字节的可变长度且非 Unicode 的字符数据。n 必须是一个介于 1 和 8,000 之间的数值。存储大小为输入数据的字节的实际长度,而不是 n 个字节。所输入的数据字符长度可以为零。
2、 …
Comments (0)
Views (172)
php连接pdo_mssql数据库
2009-01-05
php
$db = new Pdo(’mssql:host = $host;dbname = $dbName’,$userName,$password);
$db->query($sql);
Comments (0)
Views (187)
Zend 框架
2008-11-21
php
php
zend
framework
是基于 PHP 建立的。
是面向对象的。
使用 MVC 范例。
具有开放源码贡献者。
有贡献者负责保证他们的代码不是他人的知识产权。
通过建立 MVC 模式,Zend 框架的目标是使编程生活更加轻松,这不仅体现在通用领域,而且对您始终想要做的具体的事情也是如此,比如访问数据库或输出 PDF 文件.
Zend 框架组件包括:
Zend_Controller
此模块为应用程序提供全面的控制。它将请求转化为特定的行为并确保其执行。
Zend_Db
此模块基于 PHP 数据对象 (P …
Comments (0)
Views (223)
Items 1 - 10 of 13
1
2
Next