You are here: What is php's behavior when connect to a db? « PHP Programming Language « IT news, forums, messages
What is php's behavior when connect to a db?

Posted by zelzel.zsu on 11/06/39 11:31

What is php's behavior when connect to a db?

I've been told that php was once a dominant web programing language.
I've read a few chapters of a php book.

I was wonder what's php's performance.

Perl was once for a while a popular programming language for cgi.
But start very process per one web visit cause serioius problem to
system performance.

And then FASTCGI born.
I was impressed by its performance.

But recently i learn to do some php program which connect a mysql db.
It seems that the program run's very slow.

So, I have 2 questions:
1. does the os need to fork a php interpreter for every single web
request?
2. does the php connects to mysql all the time? that is does it need to
connect mysql
100 times when a user request the url 100 times?

If the answer if yes, i think that php's performance is unacceptable.


thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация