The Artima Developer Community
Sponsored Link

Java Buzz Forum
what people ignore when talking about PHP....

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Marc Logemann

Posts: 594
Nickname: loge
Registered: Sep, 2002

Marc Logemann is founder of www.logentis.de a Java consultancy
what people ignore when talking about PHP.... Posted: Aug 6, 2007 8:55 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Marc Logemann.
Original Post: what people ignore when talking about PHP....
Feed Title: Logemann Blog
Feed URL: http://feeds.feedburner.com/LogemannBlog
Feed Description: Marc Logemann's thoughts on java and other stuff
Latest Java Buzz Posts
Latest Java Buzz Posts by Marc Logemann
Latest Posts From Logemann Blog

Advertisement

They always ignore the fact that maintaining a LA(M)P stack can become a nightmare very fast. So please, if you compare PHP with Java for instance, please also have a look at the deployment scenario. With Java you dont need to be a unix expert. You can simply rent an internet server at some hosting company, install latest JDK/JRE which is definitely a snap and there you go. With PHP its quite different. Most likely there is already a PHP version installed, depending on the server rollout config, this version can be out of date and then the fun starts.

I have an internet server located at 1&1 for quite some time with an installed PHP 4.x. Now i want to install a CRM system (vTiger) which relies on PHP 5.x I tried the most simple way by doing “rpm -U” but as always with RPM (the worst package manager on the planet) it failed because of packages relying on PHP 4.x. Then i discarded the RPM idea and went for the “compile the shit from source” solution. Attention: The average developer will have his first problems here because not everyone on the planet knows how to compile stuff on linux. Even if you know how to do it, you should be aware of the configure parameters of your old PHP binary, otherwise you will have a different kind of PHP animal running, breaking current programs relying on PHP and its modules.

To make it short, i have done all that and because i have done it in the past, its not that a big deal. Now i have a PHP5 shared object waiting to be inlcuded in the apache server. But wait… if i do so, all current programs will use PHP5. Hmmmm. Bad. So either you rename all your current php files to php4 or something and map the old php binary to the .php4 extension (which is a very bad idea because this will most likely break app code) or you have to trust in the upwards compatibilty of php. With java this a no brainer, you can isolate different java version quite well, with php you have to beĀ  a linux and apache admin.

But i am not at the end. My brand new php5 binary doesnt load php extensions (like the not so unimportant MySQL extension). This is quite scary because my php5 installation uses the php.ini file as the old php4 binary which was able to load php extensions. Remember, i am not a php newbie, i edited php.ini files 6 years ago and compiled more than one php binary.

And at this point i really dont care if php is faster to code within some areas, if i fiddle around with linux because of PHP for a single day, the minimal development effort gain is lost 4times. I am quite pleased that i never had to “compile” a java version by hand and look for a configure string which is 4x times longer than every java interpreter call (with all that VM parameters) can be. And yes, there are people who can handle all this with linux because they are quite good in linux/apache administration but keep in mind that i prefer knowledge in transaction semantics and java classloading than in linux administration.

Read: what people ignore when talking about PHP....

Topic: Today Previous Topic   Next Topic Topic: Friday Java Quiz: What Does -source 1.4 Really Mean?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use