|
Posted by Mike on 10/31/05 23:45
I'm new to PHP - moving over from ASP.
I have a number of include files, the first of which sets the value of
a variable $loginmsg. I use that variable in a subsequent include
file, but get a "Notice: Undefined variable loginmsg" warning. I've
had a good look at previous posts concerning this warning, and see that
isset() is recommended to prevent this kind of warning. Is this
totally necessary?
In ASP, and include file becomes part of the total script for the page
that calls the include. Is this different in PHP? Is each include
treated as a separate script?
TIA
Mike
Navigation:
[Reply to this message]
|