Re: [PHP-WIN] SESSIONS and include()

2006-02-09 Thread Fredrik Tillman
obals on or off, the scope of variables, etc. It seems as if "user_level" is not known within the module. Luis -Original Message- From: Armando [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 9 de Fevereiro de 2006 4:41 To: php-windows@lists.php.net Subject: Re: [PHP-WIN] SESSION

RE: [PHP-WIN] SESSIONS and include()

2006-02-09 Thread Luis Moreira
ule. Luis -Original Message- From: Armando [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 9 de Fevereiro de 2006 4:41 To: php-windows@lists.php.net Subject: Re: [PHP-WIN] SESSIONS and include() Read the user post (currently 2nd) from greatmagicalhat [at] gmail [dot] com at the link below. I'

Re: [PHP-WIN] SESSIONS and include()

2006-02-08 Thread Armando
Read the user post (currently 2nd) from greatmagicalhat [at] gmail [dot] com at the link below. I've never tried including a php file myself so cannot verify their information, but it makes sense. When I use includes, I use a specific file extension and store the files in a protected directory

[PHP-WIN] SESSIONS and include()

2006-02-08 Thread Fredrik Tillman
Hi PROBLEM: I want to let certain users use certain funcions on my page. To manage that I start a session and define $_SESSION[user_level] to a value from a mySQL table. So far so good. Users with $_SESSION[user_level]=="1" can access things on the .php page they are on. I made a simple if-st