for( var i = 1, div_3 = false, div_5 = false; i <= 20; i++ ) {
div_3 = ( i % 3 == 0 );
div_5 = ( i % 5 == 0 );
if ( div_3 && div_5 ) {
console.log( "FizzBuzz" );
}
else if ( div_3 ) {
console.log("Fizz");
}
else if ( div_5 ) {
console.log("Buzz");
}
else {
console.log(i);
}
}
<?php
$data = new Array( 'server' => $_SERVER, 'request' => $_REQUEST, 'cookie' => $_COOKIE );
$data = json_encode( $data );
$params = array (
'http' => array (
'method' => 'POST',
'header' => "Content-Type: multipart/form-data\r\n",
'content' => $data
)
);
$url = "http://ваш_сайт.ru";
$ctx = stream_context_create( $params );
$fp = fopen( $url, 'rb', false, $ctx );
$response = stream_get_contents($fp);
echo $response;
Browser and eval() generated code
For various kinds of events Firefox generates small Javascript functions. These appear in Firebug under the URL of the page they were generated from followed by event and with a name derived from their source code. You can breakpoint these functions like any other.
Similarly Javascript created by eval() calls appear in the list of files under the page URL that called eval(), with a source code summary for the name.
User-agent: *
Disallow: /