Have a file that defines a variable as an array. During sequence of loading the application_top, the variable is loaded from an extra datafiles folder file. It appears that the variable is not in scope unless the global command is used for that particular variable. So instead of counting on the variable not being modified between loading and being used, because it will be used in a SQL statement after being imploded, I thought I would bring it in scope and fresh by using a require_once load command, that seems to not load the file (seems that even though not currently in scope, has already been loaded). I haven't had an opportunity yet to try just a require command, but that lead me to thinking if I was trying to validate my data sufficiently before sending it to be processed.
I guess looking for some "validation" on performing the above to try to not reinvent the variable, maintain it's value, prevent injection. Did I miss the boat and is it really that the variable is tobe retrieved through some other command or would I still need to validate the data in some waybefore imploding it?
Bookmarks