Archive for 八月, 2006

叶茂中:市场调查十大误区

企业数据化地解读市场与消费者不外乎有两种途径,或者自己去了解,或者借助专业的市场调查公司。

很多企业在与市场调查公司合作的过程中,觉得好像做不做市调结论都是一样的,没有显著的成效感。

事实上市场调查这个行业是20世纪80年代才进入中国,整个模式从西方输入,行业思维、方法、手段并不完全适合刚刚起步但是发展迅猛的中国企业,于是屡屡造成这样的尴尬:市场调查公司觉得自己提供了国际先进水平的市场调查数据分析,而企业却感觉象是花钱听了一场几个小时的“市调秀”,没有实际作战的指导意义。

Read the rest of this entry »

评论

日本媒体称中国web2.0不推特色服务将面临崩溃

Donews8月30日消息(朱田田编译)29日,日本财经类权威日报《日本经济新闻》刊登专栏文章,对中国互联网行业的web2.0现象进行了解读,并指出,如果不能推出更多的特色服务,中国的web2.0泡沫将面临崩溃的危险。

文中提到,中国的众多web2.0企业因为“以用户为中心”、blog、SNS、RSS等新鲜概念吸引了大量风险投资。但中国的互联网行业总是受风险投资的影响过大。Web1.0时代的泡沫悲剧注定要在web2.0时代重演。

文章认为,web2.0虽然概念新,但中国的web2.0企业大多还是采用广告、短信等陈旧的盈利模式。而且web2.0的技术门槛并不高,大型门户网站很容易介入,而新兴小网站必将敌不过实力雄厚的传统门户。即便是web2.0企业的代表、曾放出豪言“2年内纳斯达克上市”(方兴东)的博客网也不得不迫于运营压力而裁员。因此,刚刚展露头角的web2.0企业被传统门户网站收购是大势所趋,中国互联网行业必将迎来新一轮洗牌。

文章同时指出,“C2C(Copy to China)”是中国的互联网企业长期以来的一大弱点。照搬海外模式、特别是美国模式,确实有成功的先例,但在特色服务先行的web2.0时代,依然一味地“C2C”,成功机率就很低了。

另外,该文也评价了中国网民的免费心理,认为这是早期互联网企业自掘坟墓的结果。指出现在开始培养网民的付费习惯也是中国互联网行业的当务之急之一。

文章的结论是:在web2.0时代,中国的互联网企业应该透彻地分析国情,进行市场细分,推出真正的特色服务;与跟多的主流媒体合作,提升网络广告的价值; 电子商务必须同时关注线上和线下活动,构筑垂直型商务模式。

评论

eaccelerator

安装
/usr/ports/www/eaccelerator
make install clean

You have installed the eaccelerator package.
 
Edit /usr/local/etc/php.ini and add:
 
zend_extension="/usr/local/lib/php/20020429/eaccelerator.so"
 
Then create the cache directory:
 
mkdir /tmp/eaccelerator
chown www /tmp/eaccelerator
chmod 0700 /tmp/eaccelerator

我在Apahce启动的脚本加入
mkdir /tmp/eaccelerator
chown www /tmp/eaccelerator
chmod 0700 /tmp/eaccelerator

Comments (1)

用PHP调用Lucene包来实现全文检索(转)

作者:张杰
URL:http://spaces.msn.com/members/newbdez33/
http://www.phpboom.com/

由于工作需要,需要使用PHP实现对网站内大量数量进行全文检索,
而且目前最流行的全文检索的搜索引擎库就是Lucene了,
它是Apache Jakarta的一个子项目,并且提供了简单实用的API,
用这些API,就可以对任何基本文本的数据(包括数据库)进行全文检索。

因为PHP本身就支持调用外部Java类,所以先用Java写了一个类,
这个类通过调用Lucene的API,实现了两个方法: 

  • public String createIndex(String indexDir_path,String dataDir_path)
  • public String searchword(String ss,String index_path)

Read the rest of this entry »

Comments (1)

你用什么php搜索引擎

在文章中提到php的搜索引擎状况,php虽然没有lucene 这样的搜索产品,但也有其他选择,我列表一下吧,各自优缺点就不整理

1.Zend Framework‘s lucene search
2.phpdig:
3.google:
4.htdig:
5.perlfect:
6.yahoo http://developer.yahoo.net/search
7. www.wrensoft.com
8. http://www.cs.ioc.ee/~ando/sphider
9. http://www.spip.net
10. http://www.gr0w.com/amos/growsearch
11.  

 

What php search engine would you use?

I’m facing a challenge with a customer running a site we built on a hosting environment that is quite restrictive. We used to use htdig to add search functionality, but the hoster doesn’t allow execution of binaries.

I’ve taken a look at several search engine implementations, but so far, none match all requirements:

  • Zend Framework‘s lucene search: requires PHP5, but we have to run it on PHP4
  • phpdig: uses exec() to perform the search, but we are running in safe mode
  • google: layout not flexible enough
  • htdig: requires execution of binaries, which is not allowed
  • perlfect: requires execution of perl, which is not allowed

Maybe isearch is an option but I cannot find a lot of info about it.

The requirements are simple, but restrictive:

  • Should be usable/integratable in a PHP4 based site
  • Should run with safe mode on
  • Layout should be customisable
  • Should not require execution of perl or binaries, at least not for the search part (uploading an index that is created on a separate machine is somewhat acceptable although not prefered)
  • Should be spider based, so no database query based search engine

Free Software/Open Source/Free as in Free Beer would be nice, but is no strict requirement.

Anybody any suggestion? What are you guys using?

评论

PHP安全《PHP Security》 黑夜路人翻译

[  原书信息 ]
《SAMS Teach Yourself PHP in 10 Minutes》
Author: Chris Newman   
Publisher : Sams Publishing
Pub Date : March 29, 2005
ISBN : 0-672-32762-7
Pages : 264

[  翻译信息 ]
翻译人员:heiyeluren
翻译时间:2006-3-15
翻译章节:《Lesson 24. PHP Security》
中文名称:PHP安全

 

PHP勿庸置疑是非常强大的服务器端脚本语言,但是强大的功能总是伴随着重大的危险,在这章里,你将学习到使用PHP的安全模式来阻止一些PHP潜在的危险因素。

Read the rest of this entry »

评论

Experiences of Using PHP in Large Websites

评论

A HOWTO on Optimizing PHP

 

PHP is a very fast programming language, but there is more to optimizing PHP than just speed of code execution.

In this chapter, we explain why optimizing PHP involves many factors which are not code related, and why tuning PHP requires an understanding of how PHP performs in relation to all the other subsystems on your server, and then identifying bottlenecks caused by these subsystems and fixing them. We also cover how to tune and optimize your PHP scripts so they run even faster.

Read the rest of this entry »

Comments (2)

Tuning Apache and PHP for Speed on Unix

Tuning Apache and PHP for Speed on Unix Here is my compilation of tips on how to optimise Apache on Linux for PHP and CGI programs. These tips can also apply to Perl and Python. Links will open in a new window.

Also read my essay Optimizing PHP for a more in depth coverage of these issues with case studies.

Read the rest of this entry »

评论

10 Tips That Every PHP Newbie Should Know

I wish I had known these 10 tips the day I started working with PHP. Instead of learning them through painstaking process, I could have been on my way to becoming a PHP programmer even sooner! This article is presented in two parts and is intended for folks who are new to PHP.

Read the rest of this entry »

评论