On Fri, Aug 09, 2002 at 01:59:09PM -0400, Monty wrote:
> function user_acess() {
>     if ( isset($_SESSION['valid_user']) ) {
>         return 1;
>     }
>     return 0;
> }
> Most of the time it returns 0 (zero) even though I know the session variable
> is set. However, if I rename the functions.inc.php file to functions.php and
> make NO changes at all to the code, it suddenly works!?

Perhaps, somewhere in your include path is another file named 

Perhpas another file you're mistakenly including has a function already 
named user_acess()?

In your test script, use the function_exists() function before you define 
the user_acess() function to see what's going on.


               PHP classes that make web design easier
        SQL Solution  |   Layout Solution   |  Form Solution
    sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to