Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Quote:
|
So does it mean that i have to re-open the connection for every php page i have?
|
Yes, it does.
PHP is a scripting language, that is run in a "fire and forget" model, like the web.
A request to apage is done, the server fires the PHP engine up, process that page, and shut the PHP processor down.
You request another page, it fires the PHP engine again, process the page, and shut it down.
Well, not really today when you use an apache module, but the principle stays the same.
Each page are distinct, and no logic is shared between them, if you don't take care of it.
__________________
Only a biker knows why a dog sticks his head out the window.
|