Archive for 五月, 2010

PHP使用GD库实现截屏

PHP使用GD库实现截屏

PHP5.2.2以上版本的GD库实现了两个截屏函数 imagegrabscreenimagegrabwindow
分别用于截取整个屏幕和截取某个窗口(同ALT+PrintScreen)的屏幕。 (continue reading…)


startpoint-recursive

$this->storagePid = $this->pi_getPidList($this->cObj->data[‘pages’], $this->cObj->data[‘recursive’]);

1 Comment more...

屏蔽list里的add,save等按钮

t3lib_extMgm::addUserTSConfig(‘
options.saveDocNew.tx_t3blog_post=0
‘);
t3lib_extMgm::addUserTSConfig(‘
options.saveDocNew.tx_t3blog_cat=0
‘);


IIS 配置PHP环境

FastCGI  for IIS 6  7   http://www.iis.net/expand/fastcgi

转到刚才安装CGI的目录下:

>cd C:\WINDOWS\system32\inetsrv

>cscript fcgiconfig.js -add -section:”PHP” -extension:php -path:”C:\Program Files\PHP\php-cgi.exe”

注意:path:”xxxx\php-cgi.exe” 是你安装php的目录

> cscript fcgiconfig.js -set -section:”PHP” -InstanceMaxRequests:10000
> cscript fcgiconfig.js -set -section:”PHP” -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000

http://www.cnblogs.com/zengxiangzhan/archive/2010/03/05/1679286.html

http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/


tca.inline.tt_content配置与读取

TCA里:
‘config’ => array (
‘type’ => ‘inline’,
‘foreign_table’ => ‘tt_content’,
‘maxitems’ => 100,
‘appearance’ => array( (continue reading…)


前台RTE输出

$this->pi_RTEcssText();
用这个包裹就行了。


Changing default image width of 600 px in Typo3

Typo3 by default limits image width to 600 px. You can easily change this setting using TypoScript. These TypoScript can be usually located on the root Template record. If not you can try using the object browser to find the exact location. (continue reading…)


DiskGenius磁盘分区及数据恢复软件

DiskGenius是一款磁盘分区及数据恢复软件。支持对GPT磁盘(使用GUID分区表)的分区操作。除具备基本的分区建立、删除、 (continue reading…)


Lamp – 安装 配置

LAMP 安装 配置
配置环境
操作系统:Redhat Enterprise AS 4
已安装包:httpd2.0.4, mysql4.1,libxml2.6.16, zlib1.2.1.2,gd2.0.28, libpng1.2.7
说明:网上的各种安装说明都不是很好地说明了配置参数的来由,本文将尽可能标明每一步的必要性.已安装包不是必需的,其中mysql可以独立安装,而rpm包形式的httpd因为不是mod-so形式安装的,如果要支持php或者其它模块,要强制remove重安装编码版本. #rpm –nodeps –erase httpd (continue reading…)


Ubuntu使用root登录

1.首先设置root密码,利用现有管理员帐户登陆Ubuntu,在终端执行命令:sudo passwd root,接着输入密码和root密码,重复密码。这样就有了可用的root用户。 (continue reading…)


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress