Global vs. Define
<p>I have a php file in which I need to be able to easily flip a switch.  The switch is set to 1 for local server and 0 for production server.  local_on='1'; or local_on='0';.  Which way is better (creating a global or using define)? If either way is good which way is best practice? </p>
