Can we build PHP 5 Class?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I've never had a slow running PHP script before. The closest to that was too much database interaction. There's probably a cause other than PHP if it's running slow (unless you've got a lot of long loops and function calls).
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Even loops and function calls won't make a PHP app that slow. Server processing can, database servers can, recursion gone bad can, etc. Seldom is it PHP that is making things slow unless your code is bad.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

superdezign wrote:I've never had a slow running PHP script before. The closest to that was too much database interaction. There's probably a cause other than PHP if it's running slow (unless you've got a lot of long loops and function calls).
That is an excellent observation. I can't think of the last time that the script itself was causing slowness. It's always some connection to another server/application that needs to be dealt with.
(#10850)
Post Reply