Re: [PHP] Name of Include File breaking a Function - Strange!

2002-08-09 Thread Monty
Dan, you were right and I feel so retarded now! I found another include file of the same name in the folder with the script that wasn't working. It was driving me crazy but I didn't even think to check that. Thank you for replying! Monty. > Perhaps, somewhere in your include path is another fi

Re: [PHP] Name of Include File breaking a Function - Strange!

2002-08-09 Thread Analysis & Solutions
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 fun

[PHP] Name of Include File breaking a Function - Strange!

2002-08-09 Thread Monty
I have an include file named functions.inc.php that I include in nearly every script. For some bizarre reason, the following function inside this file does not always work: function user_acess() { if ( isset($_SESSION['valid_user']) ) { return 1; } return 0; } Most of the tim