[PLUG] PHP style question
Brian Horan
bhoran at hexdev.com
Mon Jun 23 16:40:02 UTC 2003
$_SERVER holds items like environment variables
$_SESSION holds items that relate to a user's session as put there by
you, the coder...using session_start(), and session_register(), etc....
make a page with the following php code to take a look....
<?php
phpinfo();
?>
On Mon, 2003-06-23 at 18:39, Daniel B. Herrington wrote:
> All,
>
> I have a question about $_SERVER and $_SESSION in php 4.3. I am going to set the
> application root directory in one of the superglobals. It seems to me it should
> be in the $_SERVER because its specific to the application, although on the php
> website it says these array vars are set by the webserver. The $_SESSION array
> seems more for vars that are specific to the use'rs session, like user name,
> home dirs, assigned groups, etc.
>
> I was wondering what sort of rule others used for determing what to set in where.
>
> thanks,
> Dan H.
>
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
--
Brian Horan <bhoran at hexdev.com>
More information about the PLUG
mailing list