Re: [PHP] using $_SESSION inside of user functions

2004-04-12 Thread Jason Wong
On Monday 12 April 2004 08:23, Andy B wrote: > didnt know if it was possible to use $_SESSION vars in that function or any > user defined functions for that matter... Why didn't you waste one minute of your time to try it out? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source

Re: [PHP] using $_SESSION inside of user functions

2004-04-11 Thread daniel
> Andy B wrote: > >> //log function >> //writes log files >> >> function WriteLog($LogType){ >> switch($LogType: >> case "login": >> //use session vars here... >> } > > Yes. > yes in the latest, all request methods are in the super global scope, $_POST, $_GET, $_SERVER, $_SESSION and constants

Re: [PHP] using $_SESSION inside of user functions

2004-04-11 Thread John W. Holmes
Andy B wrote: //log function //writes log files function WriteLog($LogType){ switch($LogType: case "login": //use session vars here... } Yes. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com --

Re: [PHP] using $_SESSION inside of user functions

2004-04-11 Thread Andy B
didnt know if it was possible to use $_SESSION vars in that function or any user defined functions for that matter... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 11, 2004 8:11 PM Subject: Re: [PHP] using $_SESSION inside of us

Re: [PHP] using $_SESSION inside of user functions

2004-04-11 Thread daniel
> //log function > //writes log files > > function WriteLog($LogType){ > switch($LogType: > case "login": > //use session vars here... > } > What is the question ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using $_SESSION inside of user functions

2004-04-11 Thread Andy B
//log function //writes log files function WriteLog($LogType){ switch($LogType: case "login": //use session vars here... } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php