MSN在线版 Live Messenger IM Control
April 17, 2008
http://settings.messenger.live.com/applications/websettings.aspx
通过上面的地址可以生成HTML嵌入代码,而且并不会暴露您的MSN地址
April 17, 2008
http://settings.messenger.live.com/applications/websettings.aspx
通过上面的地址可以生成HTML嵌入代码,而且并不会暴露您的MSN地址
March 26, 2008
测试环境是建立在虚拟PC上的,执行ApacheBench的是宿主,虚拟PC软件是用微软的VPC,上面装了WIN2003简体,RAM是共享宿主的512MB
宿主的配置是:T2400 1.8G 2.5G RAM
———————————————————–
本次测试是针对在没有微软官方的FASTCGI之前在IIS上使用PHP(不论是ISAPI方式或者CGI方式),在高负载和长期运行后不稳定的问题进行的,本次测试目的主要是检查FASTCGI PHP的稳定性
———————————————————–
被测试的PAGE只是一个phpinfo()调用.
使用的是ApacheBench模拟30个并发,执行1000000次请求,结果请看下面.
在三个半小时(214分钟)的整个测试过程中没有出现任何异常,测试完毕后RAM也被正常释放.
PS.在测试期间宿主上面还打开多个聊天软件并且打开多个IE在进行浏览网页
hp-cgi.exe进程
FASTCGI的配置如下
PHP=C:\PHP\php-cgi.exe
[C:\PHP\php-cgi.exe]
QueueLength=1000
MaxInstances=4
InstanceTimeout=30
InstanceMaxRequests=1000
------------------------ApacheBench結果---------------------
ab -c 30 -n 1000000 http://www.vpc.com/phpinfo.php
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking www.vpc.com (be patient)
Completed 100000 requests
Completed 200000 requests
Completed 300000 requests
Completed 400000 requests
Completed 500000 requests
Completed 600000 requests
Completed 700000 requests
Completed 800000 requests
Completed 900000 requests
Finished 1000000 requests
Server Software: Microsoft-IIS/6.0
Server Hostname: www.vpc.com
Server Port: 80
Document Path: /phpinfo.php
Document Length: 50211 bytes
Concurrency Level: 30
Time taken for tests: 12844.317000 seconds
Complete requests: 1000000
Failed requests: 138046
(Connect: 0, Length: 138046, Exceptions: 0)
Write errors: 0
Total transferred: -1130766272 bytes
HTML transferred: -1328766272 bytes
Requests per second: 77.86 [#/sec] (mean)
Time per request: 385.330 [ms] (mean)
Time per request: 12.844 [ms] (mean, across all concurrent requests)
Transfer rate: -85.97 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 1 3 5.1 2 2336
Processing: 42 381 180.5 348 6493
Waiting: 30 364 179.2 331 6469
Total: 45 385 180.8 351 6495
Percentage of the requests served within a certain time (ms)
50% 351
66% 380
75% 402
80% 420
90% 484
95% 562
98% 753
99% 1168
100% 6495 (longest request)
March 20, 2008
1.首先到微軟官方IIS網站下載,並安裝 FastCGI Extension for IIS6.0 - RTM
http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1521
(安裝後不需要重啟SERVER)
2.設置IIS
設置支持.php文件

添加影射
設置默認首頁
3.配置PHP FastCGI
編輯%WINDIR%\system32\inetsrv\fcgiext.ini
在[Types]下面加入
PHP=C:\PHP\php-cgi.exe
[C:\PHP\php-cgi.exe]
QueueLength=1000
MaxInstances=4
InstanceTimeout=30
InstanceMaxRequests=200
上面的參數根據實際環境進行配置
configuration settings (per process pool):
fullPath: path to application for this pool (e.g. d:\php\php-cgi.exe, NOTE: must match handlers section)
maxInstances: maximum number of processes to create in this pool
instanceTimeout: maximum duration a request can last
instanceMaxRequests: process will be retired after exceeding this number of requests
protocol: use named pipes or tcp. The tech preview currently only supports named pipes, but TCP should be simple to add.
queueLength: maximum number of requests to queue (when this is exceeded the module will start 500'ing)
flushNamedPipe: Flush the named pipe at the end of each request. This is to workaround, what seems to be a bug in libfcgi: if two FastCGI requests arrive in a single ReadFile call, libfcgi closes the pipe. (If anyone wants to tackle this problem, I'd be happy to provide a repro)
4.配置php.ini
設置好extension_dir並打開需要的extension
; fastcgi.impersonate = 1; 改成 fastcgi.impersonate = 1
; cgi.fix_pathinfo=1 改成 cgi.fix_pathinfo=1
; cgi.force_redirect = 1 改成 cgi.force_redirect = 0
更詳細的安裝說明可以參考
%WINDIR%\system32\inetsrv\fcgireadme.htm
http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/
PS
當你已經打開過php文件後,你再去修改php.ini必須用命令行重啟IIS才會生效
net stop w3svc
net start w3svc
October 29, 2006
为了方便自己还有大家学习特定写此范例,使用的ZF版本是0.6,由于比较忙,没有写相应的教程,但代码里面已经有详细的注释
此范例参照了
http://www.akrabat.com/zend-framework-tutorial/
中的视图以及数据库结构,但其它操作完全不一样,故不能按照上面的教程来研究代码
本范例只支持独立的虚拟主机,请根据实际情况修改你的Vhost配置
<VirtualHost *:80>
RewriteEngine on
#注意这个Rewrite不能写在.htaccess
RewriteRule !^/web /index.php [L]
ServerName www.vf.com
ServerAdmin xxxxxxxxxx
DocumentRoot xxxxxxxxxx
</VirtualHost>
添加好Vhost后修改hosts文件,添加一条本地指向
127.0.0.1 [url=http://www.vf.com]www.vf.com[/url]
这里告诉大家一个快速找到hosts文件的方法,win+r 后运行drivers就会打开%SystemRoot%\system32\drivers然后再打开里面的etc文件平就可以找到hosts了………其实这个应该好多人知道-_-….
大家可能注意到 我的Rewrite并没有使用官方文档中
RewriteRule !\.(js|ico|gif|jpg|png|css|html|php)$ index.php
或者
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
我是把所有web元素:图片,FLASH,JS都放在web目录底下的,所以只排除web目录就可以了,不需要判断扩展名(上面第一种方法)或者url访问的文件是否是真实存在的文件,要是有一个访问量是百万级或者千万级的网站用上面的方法性能消耗应该是好显明的,特别是判断文件是否真实文件
这次我把模板文件也放在web目录中去了,原来应该放在根目录view底下,这样可以防止非法访问模板文件但这只是一个范例,所以就不那么严格了,更何况这个范例除了模板就没有图片或者其它WEB元素了,要是空着WEB目录会显得寒酸…
数据库备份文件在db/db.sql,请使用MySQL 4.1+ 你会看到db目录底下有一些sqlite的相关文件,但不必理会,现在ZF的pdo_sqlite好像还不能用,我在调用的时候居然没任何效果,也没有出错信息,但也懒得查看它的代码了
恢复好数据后,编辑index.php文件,修改数据配置,然后打开http://www.vf.com]www.vf.com就可以测试了….
缺省目录结构
root
|_ZendFramework-0.6.0 具体位置修改index.php 第20行
|_ZFNews
下载范例
—————————————————————————————–
在这里顺便帮公司招聘,如果你熟悉PHP5,SMARTY,AJAX,面向对象编程;热爱WEB开发;对新技术有浓厚兴趣的话欢迎加入我们的团队,有意者请把简历发到chenwenj{a-t}gmail.com
最好有大型网站的开发经验