易截截图软件、单文件、免安装、纯绿色、仅160KB

Integrating PHP and Perl


Perl is a language often associated with text processing and CGI. PHP is
a language often associated with dynamic Web pages. Both are very popular
with Web developers. Often, each of these languages is used at the expense of
the other. Hard-core Perl developers would love to develop everything in
Perl, and PHP developers tend to stick with PHP.
As usual in the Open Source
world, there is a lot of zealotry between users of each language. If you
think that one of these languages is perfect and the other is lame,
this article is not for you! This article is for those who take a more
pragmatic approach and use what works best for them. Each language has
its strengths and limitations. Personally, I use both languages at work
and at home. With time, I have discovered which language is best for which
tasks and
try to integrate the strengths of each language as much as possible to
complete my work quickly.
Perl is extremely good at
system administration and extensive data processing, among other
things. This means, if you want to do some extensive processing on a text
report, Perl would be preferable, as it provides handy
regular-expression-enabled text comparisons, which make it so much easier to
search through a report. Perl also has extensive string manipulation
features. Perl, by virtue of being older than PHP and having an extensive
community, has thousands of extensions archived in CPAN, which allow
one to do virtually anything with the language, conveniently. from XML
processing to writing to parallel port devices, CPAN includes
everything. CPAN is the reason Perl continues to be useful to a
large number of developers to date. Although it is not impossible to do
everything described here with PHP and a mixture of other languages, it's
simply more convenient with
Perl.
PHP is extremely good at integration with Web pages and databases. PHP
integrates nicely with static HTML Web pages. That's why it's so
popular and has


相关文档:

实际开发中可能用到的PHP的字符串操作函数(总结)

在编程的过程当中,字符串的操作是非常重要的并且经常会被用到,字符串常用的操作具体的包括字符串的拼接,替换字符串,查找字符串,比较字符串,复制字符串以及计算字符串的长度等等.
1,拼接字符串
拼接字符串是最常用到的字符串操作之一,在PHP中支持三种方式对字符串进行拼接操作,分别是圆点.分隔符{}操作,还有圆点等号.=来进 ......

php中set_include_path函数的用法

php中set_include_path函数用法:
php中的set_include_path函数可用于设置应用程序目录,开发项目时合理应用这些函数,不但可以让我们在include时不用一层一层的计算目录,还可以提高我们开发的效率,减少文件包含错误率.
例如:
简历2个php文件,一个目录
位置结构如下
/index.php
/include/config.php
index.php ......

php学习笔记(4):常用PHP运算类型介绍与应用:

常用PHP运算类型介绍与应用
1、算术运算
例:
    5 * 6 - 12
    2*(28+1)
    
注:算术运算遵循数学运算规则 
从左到右,先算乘除后算加减,遇到括号先算括号内
2、赋值运算
例:
$a=1;
$a+=2;
$a*=3;
   ......

PHP中正则表达式的使用方法[笔记]

在学习php时,看到的,做个笔记
字符串头部:^
<?php echo ereg(“^hello”,”hello world!”); ?>
 
字符串尾部:$
<?php echo ereg(“bye$”,”goodbye”); ?>
 
任意的单个字符:.
<?php echo ereg(“.”,”goodbye”); ......

50个非常有用的PHP工具

PHP是使用最为广泛的开源服务器端脚本语言之一,当然PHP并
不是速度最快
的,但它却是
最常用的脚本语言
。这里有50个有益的PHP工具,可以大大提高你的编程工作:
调试工具
Webgrind
 
Xdebug
 
Gubed PHP Debugger
 
DBG
PHP_Debug
PHP_Dyn
MacGDBp
测试和优化工具
PHPUnit
SimpleTest
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号