Posted by squash on 10/03/06 02:09
I have spent two hours trying to make sense of this script, called
crazy.php. The output should be nothing because $cookie_password 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_password;
echo $cookie_password;
} // end function
?>
[Back to original message]
|