Posted by zelzel.zsu on 09/28/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.
[Back to original message]
|