Yeah I know it is considered bad programming.
But here I don't have much choice:
I use a CMS (PHPNuke not to name it), and I work with multiple includes.
In my index.php page, I have functions for each page I want to include:
If my url is "...?page=print" I have a switch that launches this:
"include ('print.php');"
When I have for example connections settings I use in my included pages, I have to globalize my variables in each function, sub-function, etc...
The only way I found to avoid this is to use "if (page == 'print')..."
This way I don't have to globalize my variables, because I don't use functions...