Php Old

Things mentioned on this page are to be reviewed.

I am not a big fan of PHP. Here are my reasons:

1. What is easy in Perl might not be easy in PHP. For example, in Perl, your script can close STDERR and STDOUT and re-open them to a file. In PHP, this is not possible, because PHP define these as constants, and you can't redefine constant. Is this tru?

2. PHP is not quite mature compare to Perl. Perl is about 10 years older than PHP. PHP is still growing, and certain things (function interface, etc) are still being refined.

3. PHP is not quite open source, because Zend, the company that initially made PHP, is still somewhat in control of what get into the release, so perhaps there is not enough open source developer contributing to PHP core.

4. PHP was not designed to work from command line. It was initially designed to work with web servers. PHP now works from command line, but I am still skeptical.

5. PHP is not thread-safe. PHP core is thread-safe so it claims to be, and you can specify a flag when you build PHP from source. Doesn't look like Zend want to make PHP thread-safe. Although, I have to agree that, operating system, namely Linux, are trying to make processes as light weight as possible, so there might not be any performance gain. I need to investigate more on this.

http://www.bitstorm.org/edwin/en/php/
http://keithdevens.com/weblog/archive/2003/Aug/13/HATE-PHP
http://use.perl.org/comments.pl?cid=27113&sid=17737

"apache php multi thread"
"apache php module API version checking"

There should be a link to PHP-Perl glue code.

Writing extension for PHP
http://devzone.zend.com/article/1021-Extension-Writing-Part-I-Introduction-to-PHP-and-Zend
http://www.devnewz.com/2002/0909.html
http://www.whenpenguinsattack.com/2006/11/15/how-to-write-php-extensions/
http://www.devnewz.com/090902b.html
http://www.php.net/~wez/extending-php.pdf
http://hades.phparch.com/files/tek07/sara_golemon-tutorial_extension_writing.pdf
http://talks.php.net/show/extending-php-apachecon2003/5

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License