Right now, I am using a modified version of OsCommerce that has a lot of variables declared in its application_top.php
file (which is included when going to every file on the website as the first thing).
So for instance, if I go to mypage.php
, application_top.php
is included in the top.
I only want some of the variables defined from my application_top.php
file to be accessible inside the mypage.php
file, since they are used for temporary calculations or whatever, whereas others are meant to be accessible from the page.
What would be the best practise? To unset variables that are meant to be used in the local scope after use, and to leave all variables that are meant to be accessed alone?