I have spent two hours trying to make sense of this script, called
crazy.php. The output should be nothing because $cookie_passwor d is
nowhere defined in this script, correct? But it actually outputs the
value that other scripts i have running set it to. Why should crazy.php
care what other scripts are running that use that variable name??
<?php
crazy();
////////////////////////////
function crazy() {
global $cookie_passwor d;
echo $cookie_passwor d;
} // end function
?>
crazy.php. The output should be nothing because $cookie_passwor d is
nowhere defined in this script, correct? But it actually outputs the
value that other scripts i have running set it to. Why should crazy.php
care what other scripts are running that use that variable name??
<?php
crazy();
////////////////////////////
function crazy() {
global $cookie_passwor d;
echo $cookie_passwor d;
} // end function
?>
Comment