Re: PHP5 question (migrating from C++)

From: Date: Tue, 27 Apr 2004 08:54:12 +0000
Subject: Re: PHP5 question (migrating from C++)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184739@lists.php.net to get a copy of this message
phpdev@phreaker.net wrote:
Hi, I am working as a PHP developer with a team of 5 experienced (7+ years) C++ engineers. The middle-tier has been architected using C++ components with a custom C++ CGI library. Now, that PHP5 has been released, the management is considering converting from C++ to PHP5, to cut development costs. There are two issues being faced, 1. performance of PHP5 vis-a-vis C++ transaction ready middle-tier with 3-tier architecture and XML+XSLT transformations. The current C++ code is well written and we haven't faced any major issues. 2. moving to PHP5, results in the entire project being outsourced. The C++ guys get laid off and I am supposed to co-ordinate, teach and manage the project. We don't have any technical data on PHP5 performance in a 3-tier architecture with heavy transactions and XML+XSLT transformations. The key questions here are, 1. Is PHP5 production ready ?
No, but by the time you finish the rewrite it might be.
2. Does PHP5 deliver better performance than C++ in CGI env ?
Depends. PHP as a scripting language is generaly slower, however if you use php module (as oposed to CGI binary) there will be no new process forked.
3. Are the new 'oo' language constructs stable enough to go in with a major 200,000 line project re-write for a application portal ?
Don't know
4. the XML+XSLT transforms will be achieved through 'exec 'xsltproc approach. The average XML file size is 125KB. Is there a better way to handle this situation ?
xslt_* functions - no forks again
5. How has been the experience with some of the experienced folks on this list who have used it for transaction heavy environments ? Outsourcing is another headache that I have to handle, and I am quite jittery with that as well.
I won't help you with the above. What you might consider is to provide all functionality of your C++ code in php extenssions. You will have best of both worlds - speed of C++ and stability of your already tested code, and easy of development of PHP for any new feature you want to add.

« previous php.general (#184739) next »