why don't big companies use PHP ?

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
I believe I've only seen Yahoo use PHP/MySQL, along with many other do-it-yourselfers... but no companies are embracing it for all of its advantages. What are your thoughts on this ?
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
while php allows for pretty quick development, it also makes it too easy to build spaghetti code
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
For high volume, stronger databses like Oracle and MS SQL Server make more sense than mySQL.

For high volume, C/C++, JSP, even ASP.Net (hello "/" error!) may make more sense, especially if webservers can be set to cache pre-compiled version of pages (I haven't checked)

eBay uses an ISAPI C++ DLL for dynamic pages so they run pre-compiled. Amazon looks like they're doing some linux equivalent from their URLs.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
MySQL is a really lame RDMBS - anyone with money would go for something like MS SQL Server or Oracle. Most of the do-it-yourselfers just don't know what real databases can / should do.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Most companies would rather pay for something that says "Enterprise Ready" and has cool acronyms like J2EE than use something free whether it's better or not.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I really doubt performance even comes into play otherwise companies wouldn't be using crap like ColdFusion.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
There's a generic db interface, so technically it should work with any DB that you have a driver for. But I don't do php myself, so I don't know the specifics.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Because it's slow, it's messy, and it's hard to manage with more than one person working on a few files.
 

Red and black

Member
Apr 14, 2005
152
0
0
Originally posted by: Nothinman
Most companies would rather pay for something that says "Enterprise Ready" and has cool acronyms like J2EE than use something free whether it's better or not.

... because such decisions are made by clueless middle managers more concerned with clawing their way up the boss heirarchy than anything else.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
... because such decisions are made by clueless middle managers more concerned with clawing their way up the boss heirarchy than anything else.

Sometimes. Just about the only semi-valid reason I've heard is support, but my experiences with commercial support have been so bad that I'd rather spend 5 days fixing an OSS product myself than talking to commercial support for just 1 day.
 

Red Squirrel

No Lifer
May 24, 2003
69,729
13,348
126
www.betteroff.ca
Really, I'm not sure why since php is pretty fast, and stable. Especially php5, it's way faster then 4, and 4 is decently fast. ASP is MS, so I'd never trust it, and it probably costs allot, and probably only works on IIS, which screems the word worm, or "execute code remotely" since IIS is good at that.

One thing though, I find mysql gets slow when there's a few million entries in a table, especially when trying to do a LIKE query in a huge table, so paying for something like oracle is sometimes better but I'd still stick with php but get an oracle driver, if I had to decide for a company. But if Yahoo uses mysql, that must mean there's ways to make it faster and more efficient, so it shows it's still a powerful DB system.

I wonder what google uses to store all their search data.
 

DannyBoy

Diamond Member
Nov 27, 2002
8,820
2
81
www.danj.me
Originally posted by: rh71
I believe I've only seen Yahoo use PHP/MySQL, along with many other do-it-yourselfers... but no companies are embracing it for all of its advantages. What are your thoughts on this ?

It's mostly related to the extended 'premium' support.
 

Stuxnet

Diamond Member
Jun 16, 2005
8,392
1
0
PHP does not scale well for enterprise applications. Furthermore, unless you are operating under very strict development standards with a very well-disciplined team, PHP does not lend itself well to large group development. Lastly, it doesn't separate well the various roles of components in a web application.

It's good for small tasks and rapid development, but for the reasons mentioned here (and others I surely missed), enterprises look elsewhere for a solutions platform.

Just like you wouldn't use J2EE to develop a clan website, you wouldn't use PHP to develop the next Amazon.com.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: RedSquirrel
Really, I'm not sure why since php is pretty fast, and stable. Especially php5, it's way faster then 4, and 4 is decently fast.
Real businesses can't stay on the bleeding edge... the installations I know still use php4. Also, businesses sometimes stick to the versions provided by their (linux) distributions for support/reliability reasons.
Originally posted by: DannyBoy
Originally posted by: randumb
I dunno if this is relevant, but PHP is slower than Java, C/C++, etc.

Bullsh*t.

Got any evidence it isn't? I would be skeptical of any claim that an interpreted language is not slower than a compiled language.

Originally posted by: DannyBoy's Sig
01000001 01101110 01100001 01101110 01100100 01110100 01100101 01100011 01101000 00100000 01001101 01101111 01100100 01100101 01110010 01100001 01110100 01101111 01110010 00100000 01101001 01110011 00100000 01100001 00100000 01110111 01101000 01101111 01110010 01100101 00101100 00100000 01110100 01100101 01100101 01101000 01100101 01100101
Very mature. :roll:
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: jbourne77
PHP does not scale well for enterprise applications. Furthermore, unless you are operating under very strict development standards with a very well-disciplined team, PHP does not lend itself well to large group development. Lastly, it doesn't separate well the various roles of components in a web application.

It's good for small tasks and rapid development, but for the reasons mentioned here (and others I surely missed), enterprises look elsewhere for a solutions platform.

Just like you wouldn't use J2EE to develop a clan website, you wouldn't use PHP to develop the next Amazon.com.

What makes a language more suited to group development?
 

BFG10K

Lifer
Aug 14, 2000
22,709
3,000
126
Originally posted by: DannyBoy
Originally posted by: randumb
I dunno if this is relevant, but PHP is slower than Java, C/C++, etc.

Bullsh*t.
So you're claiming that interpreted code is just as fast as compiled code? How exactly are you going to explain that opinion?

 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: n0cmonkey
Originally posted by: jbourne77
PHP does not scale well for enterprise applications. Furthermore, unless you are operating under very strict development standards with a very well-disciplined team, PHP does not lend itself well to large group development. Lastly, it doesn't separate well the various roles of components in a web application.

It's good for small tasks and rapid development, but for the reasons mentioned here (and others I surely missed), enterprises look elsewhere for a solutions platform.

Just like you wouldn't use J2EE to develop a clan website, you wouldn't use PHP to develop the next Amazon.com.
What makes a language more suited to group development?
Something with better type-safety and more rigidly defined interfaces so that you don't get a big blob of unmaintainable spaghetti-code. Something compiled is nice so that you have a computer to catch a large portion of your mistakes. How are the available unit testing frameworks for php? Any mainstream enterprise-aimed language will have numerous solid options.