RE: [PHP4BETA] .PHA file?
| From: | Seth Banks | Date: | Tue, 28 Mar 2000 03:28:03 +0000 |
| Subject: | RE: [PHP4BETA] .PHA file? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12711@lists.php.net to get a copy of this message | ||
Still, not a very elegant solution. There's no way to specify a file that
runs upon the first session start?
-----Original Message-----
From: Alfred Perlstein [mailto:bright@wintelcom.net]
Sent: Sunday, March 26, 2000 9:26 PM
To: Seth Banks
Cc: php4beta@lists.php.net
Subject: Re: [PHP4BETA] .PHA file?
* Seth Banks <seth@subimage.com> [000326 21:23] wrote:
> All,
>
> Is there a file that is auto-run upon the first request for a .php page,
> like the .asa or .jsa files for ASP and JSP? For those that haven't worked
> with either technology, you can setup session or application variables in
> this file, and is very useful...Anything like this in PHP4?
I'm not too familiar with all this but I think you can achive that
via this sort of snippet:
if (!session_is_registered("var"))
include ("somefile.php"); // sets up 'var' session variable
-Alfred
--
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
For additional commands, e-mail: php4beta-help@lists.php.net
To contact the list administrators, e-mail: php4beta-admin@lists.php.net