Re: Queries close session
| From: | Matt Ferris | Date: | Wed, 16 Mar 2005 04:30:51 +0000 |
| Subject: | Re: Queries close session | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38925@lists.php.net to get a copy of this message | ||
> normally people put all
> their session check/start-up stuff in a seperate file and then include
> that
> when needed:
>
> <?
>
> require "db_connect.inc";
> require "session.inc";
Of course, you would want to make sure any of your included PHP files have
the .php (or equivilant) extension, thus preventing your server from
serving their full contents to people who would request them directly (as
the server won't know to parse them as PHP scripts).
--
Matt Ferris
matt@bueller.ca