Is that still true when you include the file?
Say you have a notfoo.php file, and include foo.php in it. You don't
still have to pass the cookies, do you?
__John Monfort_
_+---+_
P E P I E D E S I G N S
www.pepiedesign
Check out "global" it allows you to make things "global" or at the top of your
file you could do a define with the cookie value in it an it would be accessbile
without passing the value to the function - this saves both time in typeing
and is faster since it doesn't have to copy the cookie value t
To prevent further hair loss, realize that this is true for ALL variables declared
outside the function, including form variables and session variables. Either pass
them as parameters or use the 'global' declaration in the function, as Don did.
Don Read wrote:
> On 17-Apr-01 Pat Hanna wrote:
> >
On 17-Apr-01 Pat Hanna wrote:
> I found out today after suffering from minor headaches and hair loss that if
> you have functions defined in and outside file name 'foo.php', and in those
> functions you use cookies, you must pass those cookies to the function
> called. I tried using a value from
4 matches
Mail list logo