Re: persistant database connections
| From: | Richard Allsebrook | Date: | Tue, 05 Nov 2002 13:23:44 +0000 |
| Subject: | Re: persistant database connections | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22985@lists.php.net to get a copy of this message | ||
There's a whole world of difference between 'rendered' and 'processed
- the page is processed top to bottom (baring any branching in your php)
- and generally rendered from top to bottom - some parts being rendered
after as the missing components (images etc) are loaded.
- in short - yes you can - so long as the pconnect happens before you select
in the program 'flow' :)
"Bob Lockie" <bjlockie@lockie.ca> wrote in message
news:3DC7039E.1060309@lockie.ca...
> I'm using mysql_pconnect(...) at the beginning of a PHP page.
> Can I safely use mysql_select_db(...) later on the page?
> I thought I read somewhere that you can't rely on HTML to be rendered
> from top to bottom.
> Can I rely on PHP to be interpreted from top to bottom?
>
> ----------------------------------------
> From Mozilla and GNU/Linux
>
>