If you have a <?php?> block in a PHP file, is the variable inside automatically available to another php block within the same file or not? If not, is there a way to make it available to any code in the file without using sessions?
nosanity
7:31 am on Mar 11, 2003 (gmt 0)
Yes. It is, UNLESS it was placed inside a function, or class. In which case, then you would need to learn about the "global" statement.