yejr 的blog

PHP中正则表达式详细说明

PHP中正则表达式详细说明

  PHP继承*NIX的一贯传统,完全支持正规表达式的处理。正规表达式提供了一种高级的,但不直观的字符串匹配和处理的方法。用过PERL的正规表达式的朋友都知道,正规表达式的功能非常强大,但学起来不是那么容易。
  比如:
  
  ^.+@.+\..+$
  
  这段有效却难以理解的代码足够使一些程序员头痛(我就是)或者让他们放弃使用正规表达式。相信当你读完这个教程后,就可以理解这段代码的含义了。
  
  基本模式匹配
  
  一切从最基本的开始。模式,是正规表达式最基本的元素,它们是一组描述字符串特征的字符。模式可以很简单,由普通的字符串组成,也可以非常复杂,往往用特殊的字符表示一个范围内的字符、重复出现,或表示上下文。例如:

技术相关:

php里实现js中escape

function escape($str) {
preg_match_all("/[\x80-\xff].|[\x01-\x7f]+/",$str,$r);
$ar = $r[0];
foreach($ar as $k=>$v) {
if(ord($v[0]) $ar[$k] = rawurlencode($v);
else
$ar[$k] = "%u".bin2hex(iconv("GB2312","UCS-2",$v));
}
return join("",$ar);
}

技术相关:

MySQL Helps Set World Record in Java Application Server Benchmarks

come from:http://www.mysql.com

High-Speed Open Source Software Blaze Past Proprietary Solutions

CUPERTINO, Calif. -- June 12, 2006 -- A popular application server benchmark, featuring a complete open source software stack with MySQL 5.0 database, the Solaris™ 10 Operating System, and Sun Java™ Systems Application Server 9.0 Platform Edition (Project GlassFish SM) has shattered the competition by offering up to 8.6 times lower cost of acquisition than the comparable solution (1,4), according to the benchmark test results published at http://www.spec.org/jAppServer2004/results/jAppServer2004.html.

Maintained by the Standard Performance Evaluation Corp. (SPEC®), the SPECjAppServer®2004 test is a recognized industry standard benchmark used to measure performance of Java EE application server platforms and each of the components that make up the application environment -- including hardware, database software, JDBC drivers, JVM software and the system network. It is designed to model a real-world automotive dealership application, including manufacturing, supply-chain management and an order/inventory system.

技术相关:

Leading French Retailers select MySQL for their Supply Chain Management

come from:http://www.mysql.com

Paris -- May 30, 2006 -- Franprix and Leader Price have chosen MySQL, the world's
most popular open source database, to manage the data in their
enterprise-wide supply chain and product distribution platforms -- servicing
over 620 Franprix stores and 490 Leader Price outlets.

The MySQL-based information system covers all the business needs of the
entire supply and distribution chain: from purchase management, order
preparation, warehouse logistics, and product inventory for all the Franprix
and Leader Price stores.

The retailers' IT group selected the open source database while migrating to
a more modern architecture and consolidating its hardware and software

技术相关:

A Practical Guide to Migrating From Oracle to MySQL

come from:http://www.mysql.com

Tuesday June 13 , 2006

With the rapid growth of MySQL in the database market, many corporations, government agencies, educational institutions, and others have begun to migrate away from their expensive and proprietary databases. Of course, a migration from any database is not something to be taken lightly, and so countless organizations are considering their options for migrating to MySQL.

In particular, many MySQL customers are migrating from Oracle because they have reached the conclusion that the combination of cost-savings and feature set of MySQL make for a compelling business case to offload some or all their database-driven applications to the MySQL database server.

技术相关:

本站开始提供搜索服务

经网友提议,开始提供站内搜索服务(暂时仅登录会员可以使用),同时增加文章分类导航。
增加站内搜索功能时碰到了点问题,顺便提一下。
我现在用的是drupal 4.6.x系列的,它需要php4.3.10以上(似乎是这样),但是本站所在的服务器php版本并没有那么高,直接使用就报错:
Compilation failed: characters with values > 255 are not yet supported in classes at offset 143
Compilation failed: characters with values > 255 are not yet supported in classes at offset 52
于是google之,发现是因为preg_match函数不支持的缘故。在本机上用php 4.3.1调试没问题,但是一放到服务器上就有问题,干脆把这个函数相关的3行都改改。
注释掉263行附近的:
$text = preg_replace('/(['. PREG_CLASS_NUMBERS .']+)['. PREG_CLASS_PUNCTUATION .']+(?=['. PREG_CLASS_NUMBERS .'])/u', '\1', $text);

个人涂鸦:

初步完成"MySQL 同步"

完成了前面的大部分,只剩下FAQ等后面的了。在下周一之前应该能全部出来了。

个人涂鸦:

Unisys to Deliver New Services for MySQL Open Source Database Software

come from:http://www.mysql.com

Extensive services agreement designed to ease implementation and help clients realize economic and operational benefits of enterprise computing based on open standards

BLUE BELL, PA. - Unisys Corporation (NYSE: UIS) today announced that it has signed a worldwide distribution agreement with MySQL, Inc. that will enable Unisys to distribute MySQL software products and provide consulting, integration and support services for customers implementing MySQL open source databases in their technology infrastructures.

With this agreement in place, Unisys can provide a broad range of consulting, integration and support services for the MySQL? database product family, including MySQL Network subscriptions, MySQL Cluster and associated products. The new solution offering for MySQL strengthens Unisys rich services capabilities for open source stacks such as LAMP (Linux, Apache, MySQL, PHP/Python/Perl).

技术相关:

MySQL AB Sees Increased Growth & Momentum in EMEA

come from:http://www.mysql.com

Dublin Corporate Sales Office Grows 5X Over Previous 12 Months
for Open Source Database Vendor

Dublin, Ireland -- May 10, 2006 -- MySQL AB, developer of the world's most popular open source database, is seeing increased growth and momentum in EMEA, resulting in further expansion of its Dublin corporate sales office. This is a result of unprecedented demand for MySQL database software in Europe, where the company already has a growing number of ISV and enterprise customers.

According to Richard Mason, MySQL AB's vice president of EMEA, "With more than 10 million active installations worldwide, we are experiencing unprecedented demand for MySQL software and services. As a result, we are expanding our Dublin-based corporate sales team to meet customer demand throughout Europe."

技术相关:

UN's FAO Selects MySQL as its Open Source DB Standard

come from:http://www.mysql.com

One of the Largest Specialized UN Agencies Plans to Migrate up to 80% of its Technical Information Systems to MySQL

ROME, Italy -- May 2, 2006 -- MySQL AB, the developer of the world's most popular open source database, today announced that the Food and Agriculture Organization of the United Nations (FAO) has selected MySQL as its open source server-side database standard.

Founded in 1945 and with more than 3,700 staff members, FAO's mandate is to raise levels of nutrition, improve agricultural productivity, better the lives of rural populations and contribute to the growth of the world economy. Achieving food security for all is at the heart of FAO's efforts. With headquarters in Rome and 74 country offices around the world, FAO provides the kind of behind-the-scenes assistance and sustainable solutions that help people and nations help themselves.

技术相关:

页面

Subscribe to RSS - yejr 的blog