the mid number is supposed to be picked up in the index.php code and used to generate an include_once where the file to include is 0.php, 1.php, 2.php. etc.
recently it stopped working, and all links defaults to mid=0, the home page
so all the links look like they’re working (they’re in the address bar okay) but it always displays only 0.php
i am ~not~ a php coder so i don’t really know what could be causing this
anyone able to offer suggestions where to look? here’s the relevant code –
You would need to ask someone olderwho has been doing php longer than me.
I thought you need get or request to define the variable in the script, but I may be wrong.
Because $mid worked before without its being assigned a GET value it is most ikely it had global scope. Variables with global scope can cause various problems including potential security vulnerability.
I suspect the change was made silently by the host (ini config setting?) for security reasons.
I was under the impression that register_globals was a thing of the past, but the described problem sure seems like that is what is involved. http://php.net/manual/en/security.globals.php